proxmox-rrd: cleanup - use slot_end_time()
This commit is contained in:
parent
f28a713e2b
commit
7484fce24d
|
@ -186,9 +186,9 @@ impl RRA {
|
||||||
let num_entries = self.data.len() as u64;
|
let num_entries = self.data.len() as u64;
|
||||||
|
|
||||||
let min_time = epoch.saturating_sub(num_entries*reso);
|
let min_time = epoch.saturating_sub(num_entries*reso);
|
||||||
let min_time = (min_time/reso + 1)*reso;
|
let min_time = self.slot_end_time(min_time);
|
||||||
let mut t = last_update.saturating_sub(num_entries*reso);
|
|
||||||
|
|
||||||
|
let mut t = last_update.saturating_sub(num_entries*reso);
|
||||||
let mut index = self.slot(t);
|
let mut index = self.slot(t);
|
||||||
|
|
||||||
for _ in 0..num_entries {
|
for _ in 0..num_entries {
|
||||||
|
|
Loading…
Reference in New Issue