diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2021-01-30 22:32:29 +0100 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2021-01-30 22:38:40 +0100 |
commit | a1b7bd382609c76b5c7fc7064c57bfe71c102cd1 (patch) | |
tree | d5e36f0469527238327c22d7cd01f750251321ed /muninplot/data.py | |
parent | 4dc14b357382f8894e38897367f602a55d98d3fe (diff) |
Ensure that start timestamp is included
This ensures that the start timestamp is included in the returned data.
Diffstat (limited to 'muninplot/data.py')
-rw-r--r-- | muninplot/data.py | 2 |
1 files changed, 1 insertions, 1 deletions
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): |