[Git][NTPsec/ntpsec][master] adj_time: don't add rounding fudge twice...

Gary E. Miller gitlab at mg.gitlab.com
Sat Mar 11 18:45:23 UTC 2017


Gary E. Miller pushed to branch master at NTPsec / ntpsec


Commits:
bd983289 by Gary E. Miller at 2017-03-11T10:44:14-08:00
adj_time: don't add rounding fudge twice...

Thanks to Achim Gratz for spotting this.

- - - - -


1 changed file:

- libntp/systime.c


Changes:

=====================================
libntp/systime.c
=====================================
--- a/libntp/systime.c
+++ b/libntp/systime.c
@@ -323,7 +323,7 @@ step_systime(
 	struct timespec ofs_ts; /* desired offset as teimspec */
 
 	/* get the complete jump distance as timespec */
-        ofs_ts = d_to_tspec(step + sys_residual + 0.5e-9);
+        ofs_ts = d_to_tspec(step + sys_residual);
 
 	/* ---> time-critical path starts ---> */
 



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/bd98328999223c34c4e3be8f5b544abacfed89b0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20170311/52b0fe46/attachment.html>


More information about the vc mailing list