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()