Commit e6448ade authored by Guillaume Seguin's avatar Guillaume Seguin

Fix time display

parent 1581c12f
...@@ -57,7 +57,7 @@ def parse_temperature_report(report, key): ...@@ -57,7 +57,7 @@ def parse_temperature_report(report, key):
return float(filter(lambda x: x.startswith(key), report.split())[0].split(":")[1].split("/")[0]) return float(filter(lambda x: x.startswith(key), report.split())[0].split(":")[1].split("/")[0])
def format_time(timestamp): def format_time(timestamp):
return time.strftime('%H:%M:%S', time.localtime(timestamp)) return time.strftime('%H:%M:%S', timestamp)
class Tee(object): class Tee(object):
def __init__(self, target): def __init__(self, target):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment