History and Analytics: average speed from bytes for periods over 24 hours

The aggregate tables (stats_*) keep only bytes, and the queries returned 0 as speed, so the Speed
mode was empty for 7d and 30d. Speed is now the bucket average: bytes * 8 / 1e6 / bucket seconds;
for the current incomplete bucket the duration is min(bucket length, time since its start), at least
1 s. Series are labelled "RX Mbps (avg)" / "TX Mbps (avg)" for ranges over 24h. One test.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KC7BXv32Jwj8mY5sKX8u2F
This commit is contained in:
ayurishchevandClaude Sonnet 5.5 committed 2026-10-07 14:28:02 +03:00
1 parent e364a40e4b
commit b3466f9c61
17 files changed
+97 -19

No files matched your search

+1 -1
View File
@@ -1 +1 @@
9caae492cdf4361f8a728a9ce76ee1696e48f42d17072b7af1d857e8f5e38fff
8d9379ee7d6e1c766f9c3ebd363a0ea9f504703683fbc9f05dcf7c5e07c6538a