Update main.go

This commit is contained in:
Audrius Butkevicius 2021-05-11 22:58:35 +01:00 committed by GitHub
parent 0f4ae7636d
commit 4ac99657a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -287,6 +287,8 @@ func aggregatePerformance(db *sql.DB, since time.Time) (int64, error) {
DATE_TRUNC('day', Received) > $1
AND DATE_TRUNC('day', Received) < DATE_TRUNC('day', NOW())
AND Report->>'version' like 'v_.%'
/* Some custom implementation reported bytes when we expect megabytes, cap at petabyte */
AND (Report->>'memorySize')::numeric < 1073741824
GROUP BY Day
);
`, since)