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)
|
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");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue