rrd: fix off-by-one in save interval calculation

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2020-06-04 10:30:47 +02:00
parent a95a3fb893
commit a720894ff0

View File

@ -601,7 +601,7 @@ async fn run_stat_generator() {
let mut count = 0;
loop {
count += 1;
let save = if count > 6 { count = 0; true } else { false };
let save = if count >= 6 { count = 0; true } else { false };
let delay_target = Instant::now() + Duration::from_secs(10);