]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
nt_clockstuff.c:
authorSven Dietricht <dietrict@ntp.org>
Wed, 17 Nov 1999 22:54:58 +0000 (22:54 -0000)
committerSven Dietricht <dietrict@ntp.org>
Wed, 17 Nov 1999 22:54:58 +0000 (22:54 -0000)
  NTP generates a syslog message when the tick counter used to interpolate the
  time of day, rolls over.
  This log message is now only printed if running the debug executable, since
  this event seems to happen quite frequently on multiprocessor systems.

bk: 38333242BGSZhKy9E8rNy7_lvCSxSQ

ports/winnt/ntpd/nt_clockstuff.c

index 4655aea3c6ff96b533c07476aa7a92dce8879741..42103de7001cc425f418688d6cb8fd12a712a5a5 100644 (file)
@@ -134,9 +134,11 @@ TimerApcFunction(
                  OS frequency */ 
                RollOverCount = LastTimerCount + PerfFrequency * every /  HECTONANOSECONDS - 
                        (ULONGLONG) LargeIntNowCount.QuadPart;
+#ifdef DEBUG
                msyslog(LOG_INFO, 
                        "Performance Counter Rollover %I64u:\rLast Timer Count %I64u\rCurrent Count %I64u", 
                                RollOverCount, LastTimerCount, LargeIntNowCount.QuadPart);
+#endif
        }
 
        /* Now we can hang out and wait for the critical section to free up;