Add nodes to output

This commit is contained in:
Jose Gracia 2024-02-12 17:36:03 +01:00
parent 87a0f17b28
commit 9c0bfd79f9

View file

@ -117,7 +117,8 @@ class Power:
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_node_power"
# add node names here instead
hd += ",NO_NODE_NAMES_YET\n"
hd += "," + ",".join(self.nodes)
hd += "\n"
return hd
def body(self):
@ -141,8 +142,8 @@ class Power:
def summarize_epoch(self, epoch):
ts, values = epoch
return self.summarize_time(ts) \
+ self.summarize_values(values)
# + values
+ self.summarize_values(values) \
+ tuple(values)
@staticmethod
def pretty_print(args):