From a1b7bd382609c76b5c7fc7064c57bfe71c102cd1 Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Sat, 30 Jan 2021 22:32:29 +0100 Subject: Ensure that start timestamp is included This ensures that the start timestamp is included in the returned data. --- muninplot/data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'muninplot/data.py') diff --git a/muninplot/data.py b/muninplot/data.py index 46461c8..01f1ccd 100644 --- a/muninplot/data.py +++ b/muninplot/data.py @@ -139,7 +139,7 @@ def _fetch_rrd(filename, start, end, resolution=300, cf='AVERAGE'): def get_raw_values(group, host, graph, start, end, resolution=300, minmax=True): """Get the data points available from the specified graph.""" - start = int(start / resolution) * resolution + start = int(start / resolution - 1.1) * resolution end = int(end / resolution) * resolution data = defaultdict(defaultdict) for f in _get_rrd_files(group, host, graph): -- cgit v1.2.3