]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
fencepost error
authorHarlan Stenn <stenn@ntp.org>
Sat, 8 Jan 2005 06:13:32 +0000 (01:13 -0500)
committerHarlan Stenn <stenn@ntp.org>
Sat, 8 Jan 2005 06:13:32 +0000 (01:13 -0500)
bk: 41df7a0cPCdDqWJok9WkTAlT36XMaA

libntp/systime.c

index c706b84c4b4f8779b1f45808efcb3193668b993e..715f01ca061efbec97d6177b34edd7ae27d47b55 100644 (file)
@@ -89,7 +89,7 @@ get_systime(
        if (dtemp >= 1) {
                dtemp -= 1;
                now->l_i++;
-       } else if (dtemp < -1) {
+       } else if (dtemp < 0) {
                dtemp += 1;
                now->l_i--;
        }