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)
log_puts("file_poll: negative time interval\n");
#endif
file_ts = ts;
if (delta_nsec >= 0 && delta_nsec < 1000000000LL)
timo_update(delta_nsec / 1000);
else {
if (log_level >= 2)
log_puts("ignored huge clock delta\n");
file_ts = ts;
if (timo_queue) {
if (delta_nsec >= 0 && delta_nsec < 1000000000LL)
timo_update(delta_nsec / 1000);
else {
if (log_level >= 2)
log_puts("ignored huge clock delta\n");
}
}
/*