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 <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2019-08-15 10:07:10 +10:00
parent 7f8222b351
commit 6bf7715e83
1 changed files with 1 additions and 1 deletions

View File

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