[Git][NTPsec/ntpsec][master] Fix typos
Hal Murray
gitlab at mg.gitlab.com
Fri Mar 17 08:55:10 UTC 2017
Hal Murray pushed to branch master at NTPsec / ntpsec
Commits:
0ed01501 by Hal Murray at 2017-03-17T00:42:46-07:00
Fix typos
- - - - -
2 changed files:
- ntpclients/ntpviz
- ntpd/ntp_packetstamp.c
Changes:
=====================================
ntpclients/ntpviz
=====================================
--- a/ntpclients/ntpviz
+++ b/ntpclients/ntpviz
@@ -55,11 +55,11 @@ ntpviz: can't find the Python argparse module
""")
sys.exit(1)
-# believe it or not, Python has not way to make a simple constant!
-MS_PER_S = 1e3 # micro seconds per second
-NS_PER_S = 1e9 # nano seconds per second
-US_PER_S = 1e6 # micro seconds per second
-S_PER_MS = 1.0e-3 # seconds per microsecond
+# believe it or not, Python has no way to make a simple constant!
+MS_PER_S = 1e3 # milliseconds per second
+NS_PER_S = 1e9 # nanoseconds per second
+US_PER_S = 1e6 # microseconds per second
+S_PER_MS = 1.0e-3 # seconds per millisecond
S_PER_NS = 1.0e-9 # seconds per nanosecond
S_PER_US = 1.0e-6 # seconds per microsecond
=====================================
ntpd/ntp_packetstamp.c
=====================================
--- a/ntpd/ntp_packetstamp.c
+++ b/ntpd/ntp_packetstamp.c
@@ -172,7 +172,7 @@ fetch_packetstamp(
ticks = (unsigned long)
((tsp->tv_nsec * S_PER_NS) /
sys_tick);
- tsp->tv_nsec = (long)(ticks * S_PER_NS *
+ tsp->tv_nsec = (long)(ticks * NS_PER_S *
sys_tick);
}
DPRINTF(4, ("fetch_timestamp: system nsec network time stamp: %ld.%09ld\n",
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/0ed01501a83790d7ceeb60d30aef7dd84582e1d8
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20170317/9028c198/attachment.html>
More information about the vc
mailing list