/*
* Yibbidy, yibbbidy, yibbidy; that'h all folks.
*/
- record_loop_stats(last_offset, drift_comp, clock_jitter,
+ record_loop_stats(clock_offset, drift_comp, clock_jitter,
clock_stability, sys_poll);
#ifdef DEBUG
if (debug)
printf(
- "local_clock: mu %lu jitr %.3f freq %.3f stab %.3f poll %d count %d\n",
- mu, clock_jitter, drift_comp * 1e6, clock_stability *
- 1e6, sys_poll, tc_counter);
+ "local_clock: mu %lu jitr %.6f freq %.3f stab %.6f poll %d count %d\n",
+ mu, clock_jitter, drift_comp * 1e6, clock_stability,
+ sys_poll, tc_counter);
#endif /* DEBUG */
return (rval);
#endif /* LOCKCLOCK */
is->rootdelay = htonl(DTOFP(sys_rootdelay));
is->rootdispersion = htonl(DTOUFP(sys_rootdispersion));
is->frequency = htonl(DTOFP(sys_jitter));
- is->stability = htonl(DTOUFP(clock_stability * 1e6));
+ is->stability = htonl(DTOUFP(clock_stability));
is->refid = sys_refid;
HTONL_FP(&sys_reftime, &is->reftime);
day = now.l_ui / 86400 + MJD_1900;
now.l_ui %= 86400;
if (loopstats.fp != NULL) {
- fprintf(loopstats.fp, "%lu %s %.9f %.6f %.9f %.6f %d\n",
+ fprintf(loopstats.fp, "%lu %s %.9f %.6f %.9f %.9f %d\n",
day, ulfptoa(&now, 3), offset, freq * 1e6, jitter,
- stability * 1e6, spoll);
+ stability, spoll);
fflush(loopstats.fp);
}
}