From 4ac99657a67f0e87d7e3e04f180a254c0930054f Mon Sep 17 00:00:00 2001 From: Audrius Butkevicius Date: Tue, 11 May 2021 22:58:35 +0100 Subject: [PATCH] Update main.go --- cmd/uraggregate/main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/uraggregate/main.go b/cmd/uraggregate/main.go index 44cbe881b..e1dbd8bff 100644 --- a/cmd/uraggregate/main.go +++ b/cmd/uraggregate/main.go @@ -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)