[Git][NTPsec/ntpsec][master] Deleted 1 commit: Tiny tweaks, remove some cruft.

Gary E. Miller gitlab at mg.gitlab.com
Sat Aug 20 03:44:08 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:
28e2697f by Gary E. Miller at 2016-08-19T20:43:03-07:00
Tiny tweaks, remove some cruft.

- - - - -


1 changed file:

- pylib/statfiles.py


Changes:

=====================================
pylib/statfiles.py
=====================================
--- a/pylib/statfiles.py
+++ b/pylib/statfiles.py
@@ -23,10 +23,11 @@ class NTPStats:
         except:
             # unparseable  time 0 and it will be stripped later
             return None
-        time = 24*60*60*mjd+second-3506716800; # warning: 32 bit overflows
+        # 86400 = 24 * 60 * 60
+        time = 86400*mjd + second - 3506716800; # warning: 32 bit overflows
         if time < starttime or time > endtime:
             return None
-        return str( str(time) + " " + " ".join(split[2:]))
+        return str(time) + " " + " ".join(split[2:])
     @staticmethod
     def timestamp(line):
         "get Unix time from converted line."



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/28e2697f3cbc3c3a37ab4b01e7a0e7a71ebffc25
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20160820/c6b1a7cf/attachment.html>


More information about the vc mailing list