Report time in seconds, not miliseconds

This commit is contained in:
Jose Gracia 2024-02-29 15:34:51 +01:00
parent f14904f8ca
commit 362416f8aa

View file

@ -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):