From: Sven Dietricht Date: Wed, 17 Nov 1999 22:54:58 +0000 (-0000) Subject: nt_clockstuff.c: X-Git-Tag: NTP_4_0_98_G~38 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d15e3549c69ffcee489dab1a6ec436676b816097;p=thirdparty%2Fntp.git nt_clockstuff.c: 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 --- diff --git a/ports/winnt/ntpd/nt_clockstuff.c b/ports/winnt/ntpd/nt_clockstuff.c index 4655aea3c6..42103de700 100644 --- a/ports/winnt/ntpd/nt_clockstuff.c +++ b/ports/winnt/ntpd/nt_clockstuff.c @@ -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;