From 20cf200053c2a5d83e8add4865c1607cc800499d Mon Sep 17 00:00:00 2001 From: Jose Gracia Date: Tue, 20 Feb 2024 16:52:27 +0100 Subject: [PATCH] Fix timestamps for filename --- monitoring/db/scripts/get_detailed_power.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/monitoring/db/scripts/get_detailed_power.py b/monitoring/db/scripts/get_detailed_power.py index a3c7ff8..c59f879 100755 --- a/monitoring/db/scripts/get_detailed_power.py +++ b/monitoring/db/scripts/get_detailed_power.py @@ -96,6 +96,8 @@ class Power: power = cls(nodes) power.epochs = dataframe.groupby('time') + times = list(power.epochs.groups.keys()) + power.first_ts, power.last_ts = times[0], times[-1] power.dataframe = dataframe power.by_node = power.dataframe.groupby('node') power.energy = power.summarize_energy()