From 426dda0730fbae0009adc5b77ea0f23463d180e8 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Wed, 13 Oct 2021 10:24:43 +0200 Subject: [PATCH] proxmox-rrd: extract_data: include values from current slot Signed-off-by: Dietmar Maurer Signed-off-by: Thomas Lamprecht --- proxmox-rrd/src/rrd.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxmox-rrd/src/rrd.rs b/proxmox-rrd/src/rrd.rs index c97be96d..328ac9f2 100644 --- a/proxmox-rrd/src/rrd.rs +++ b/proxmox-rrd/src/rrd.rs @@ -231,7 +231,7 @@ impl RRA { let mut list = Vec::new(); - let rrd_end = reso*(last_update/reso); + let rrd_end = reso*(last_update/reso + 1); let rrd_start = rrd_end.saturating_sub(reso*num_entries); let mut t = start;