Last 5 minutes of throughput data are stored server-side on node_manager

A server-side ringbuffer retains just the last 5 minutes of throughput.
When the dashboard first loads, it collects all 5 minutes of data,
so nothing appears skipped. Subsequent updates query the latest
value in the buffer.

FIXES #317
This commit is contained in:
Herbert Wolverson 2023-03-30 14:46:30 +00:00
parent cfaae176d4
commit 4ed077c634

View File

@ -5,9 +5,7 @@
mod cpu_ram;
mod shaped_devices;
mod throughput;
mod dns_cache;
pub use cpu_ram::*;
pub use shaped_devices::*;
pub use throughput::THROUGHPUT_BUFFER;
pub use dns_cache::lookup_dns;