From: Harlan Stenn Date: Mon, 3 Apr 2000 06:23:25 +0000 (-0000) Subject: ChangeLog, refclock_atom.c: X-Git-Tag: NTP_4_0_99_J~46 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6ee74e33034298c97d2ea81ecbf6d9696af26d89;p=thirdparty%2Fntp.git ChangeLog, refclock_atom.c: * ntpd/refclock_atom.c (atom_pps): Bugfix From: Philippe Charnier bk: 38e838ddqVkKGT8mgG6jbzXcq1ayFQ --- diff --git a/ChangeLog b/ChangeLog index e165ff92ce..aba383d83f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2000-04-02 Harlan Stenn + + * ntpd/refclock_atom.c (atom_pps): Bugfix + From: Philippe Charnier + 2000-03-30 Harlan Stenn * libparse/clk_wharton.c (cvt_wharton_400a): Do not return diff --git a/ntpd/refclock_atom.c b/ntpd/refclock_atom.c index 764f6e0d09..10e493920c 100644 --- a/ntpd/refclock_atom.c +++ b/ntpd/refclock_atom.c @@ -324,7 +324,7 @@ atom_pps( ts = up->pps_info.clear_timestamp; pp->lastrec.l_ui = ts.tv_sec + JAN_1970; ts.tv_nsec = (ts.tv_nsec + 500) / 1000; - if (ts.tv_nsec > 1000000) { + if (ts.tv_nsec >= 1000000) { ts.tv_nsec -= 1000000; ts.tv_sec++; }