mirror of https://github.com/ericonr/sndio.git
Warn about huge clock ticks only if there are time-outs
This commit is contained in:
parent
aa3d0b1ca1
commit
5219e9d39d
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue