diff --git a/monitoring/db/scripts/get_detailed_power.py b/monitoring/db/scripts/get_detailed_power.py index 2449b2b..d585cc4 100755 --- a/monitoring/db/scripts/get_detailed_power.py +++ b/monitoring/db/scripts/get_detailed_power.py @@ -100,7 +100,7 @@ class Power: return fname def header(self): - hd = "# all timestamp have unit miliseconds since unix epoch\n" + hd = "# all timestamp have unit seconds since unix epoch\n" hd += "# all power values have unit Watt\n" hd += "timestamp,RESERVED,head_node_power,avg_node_power,median_node_power,min_node_power,max_node_power,std_dev_sample_node_power" hd += "," + ",".join(self.nodes) @@ -114,7 +114,7 @@ class Power: return _body def _summarize_time(self, ts): - return Power.to_csv(ts, "") + return Power.to_csv(ts/1000., "") # time in seconds @staticmethod def _summarize_values(df):