From 6bf7715e83c5c8ce83a5b0afdeb5158e25e6b082 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 15 Aug 2019 10:07:10 +1000 Subject: [PATCH] wacom: write just the timestamp to the log file Easier to parse than a strftime. And we can just add that one in a comment anyway. Signed-off-by: Peter Hutterer --- tuhi/wacom.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tuhi/wacom.py b/tuhi/wacom.py index f935a58..78a49d3 100644 --- a/tuhi/wacom.py +++ b/tuhi/wacom.py @@ -216,7 +216,7 @@ class DataLogger(object): self.logfile.write(f'name: {self.device.name}\n') self.logfile.write(f'bluetooth: {self.btaddr}\n') - self.logfile.write(f'time: {time.strftime("%Y-%m-%d %H:%M:%S")}\n') + self.logfile.write(f'time: {int(time.time())} # host time: {time.strftime("%Y-%m-%d %H:%M:%S")}\n') self.logfile.write(f'data:\n') def _close_file(self):