rrd: fix off-by-one in save interval calculation
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
a95a3fb893
commit
a720894ff0
@ -601,7 +601,7 @@ async fn run_stat_generator() {
|
|||||||
let mut count = 0;
|
let mut count = 0;
|
||||||
loop {
|
loop {
|
||||||
count += 1;
|
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);
|
let delay_target = Instant::now() + Duration::from_secs(10);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user