Make the same size rounding error both ways.

This commit is contained in:
Poul-Henning Kamp 1999-03-22 14:01:58 +00:00
parent 7f29144bc9
commit 3a25914cfd

View file

@ -281,7 +281,7 @@ ntp_adjtime(struct proc *p, struct ntp_adjtime_args *uap)
return (error);
s = splclock();
if (modes & MOD_FREQUENCY) {
L_LINT(time_freq, ntv.freq / SCALE_PPM);
time_freq = (ntv.freq * 1000LL) << 16;
#ifdef PPS_SYNC
pps_freq = time_freq;
#endif /* PPS_SYNC */