[Git][NTPsec/ntpsec][master] Deleted 1 commit: Fix/simplify cpu-temp-log timestamp.
Gary E. Miller
gitlab at mg.gitlab.com
Thu Aug 18 23:18:53 UTC 2016
Gary E. Miller pushed to branch master at NTPsec / ntpsec
WARNING: The push did not contain any new commits, but force pushed to delete the commits and changes below.
Deleted commits:
4449e142 by Gary E. Miller at 2016-08-18T16:17:22-07:00
Fix/simplify cpu-temp-log timestamp.
- - - - -
1 changed file:
- contrib/cpu-temp-log
Changes:
=====================================
contrib/cpu-temp-log
=====================================
--- a/contrib/cpu-temp-log
+++ b/contrib/cpu-temp-log
@@ -36,7 +36,7 @@ temperatures will be hardware specific.
"""
-import sys, re, datetime, subprocess
+import sys, re, time, subprocess
output = subprocess.check_output(["sensors", "-u"], universal_newlines=True)
@@ -44,8 +44,8 @@ lines = output.split( '\n' )
pat = re.compile('^\s+temp\d+_input:\s+([\d\.]+).*$')
-now = datetime.datetime.utcnow()
-sys.stdout.write( now.strftime("%s") )
+now = int(time.time())
+sys.stdout.write( int(now) )
#lines = sys.stdin.readlines()
line = ''
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/4449e142d38639b5ba78a8816232d37b0c0fdc18
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20160818/999cfd60/attachment.html>
More information about the vc
mailing list