Warn about huge clock ticks only if there are time-outs

This commit is contained in:
Alexandre Ratchov 2016-01-05 09:43:13 +01:00
parent aa3d0b1ca1
commit 5219e9d39d
1 changed files with 8 additions and 6 deletions

View File

@ -419,12 +419,14 @@ file_poll(void)
if (delta_nsec < 0) if (delta_nsec < 0)
log_puts("file_poll: negative time interval\n"); log_puts("file_poll: negative time interval\n");
#endif #endif
file_ts = ts; file_ts = ts;
if (delta_nsec >= 0 && delta_nsec < 1000000000LL) if (timo_queue) {
timo_update(delta_nsec / 1000); if (delta_nsec >= 0 && delta_nsec < 1000000000LL)
else { timo_update(delta_nsec / 1000);
if (log_level >= 2) else {
log_puts("ignored huge clock delta\n"); if (log_level >= 2)
log_puts("ignored huge clock delta\n");
}
} }
/* /*