mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-10 07:11:08 +00:00
Update main.go (#7667)
This commit is contained in:
parent
c9ea773a22
commit
4ace451013
@ -287,6 +287,8 @@ func aggregatePerformance(db *sql.DB, since time.Time) (int64, error) {
|
|||||||
DATE_TRUNC('day', Received) > $1
|
DATE_TRUNC('day', Received) > $1
|
||||||
AND DATE_TRUNC('day', Received) < DATE_TRUNC('day', NOW())
|
AND DATE_TRUNC('day', Received) < DATE_TRUNC('day', NOW())
|
||||||
AND Report->>'version' like 'v_.%'
|
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
|
GROUP BY Day
|
||||||
);
|
);
|
||||||
`, since)
|
`, since)
|
||||||
|
Loading…
Reference in New Issue
Block a user