[Git][NTPsec/ntpsec][master] Fix busted step-logging code.
Eric S. Raymond
gitlab at mg.gitlab.com
Tue Jun 7 22:32:22 UTC 2016
Eric S. Raymond pushed to branch master at NTPsec / ntpsec
Commits:
f7a10e1b by Eric S. Raymond at 2016-06-07T18:32:15-04:00
Fix busted step-logging code.
- - - - -
1 changed file:
- libntp/systime.c
Changes:
=====================================
libntp/systime.c
=====================================
--- a/libntp/systime.c
+++ b/libntp/systime.c
@@ -414,6 +414,10 @@ step_systime(
get_ostime(&timets);
fp_sys = tspec_stamp_to_lfp(timets);
+ /* only used for utmp/wtmpx time-step recording */
+ tvlast.tv_sec = timets.tv_sec;
+ tvlast.tv_usec = (timets.tv_nsec + 500) / 1000;
+
/* get the target time as l_fp */
L_ADD(&fp_sys, &fp_ofs);
@@ -498,7 +502,6 @@ step_systime(
# undef NTIME_MSG
#endif
}
- tvlast = timetv;
return true;
}
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/f7a10e1b052091f5acbdca0fe05c1fbf5c7464c8
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20160607/80e43406/attachment.html>
More information about the vc
mailing list