Fix waitFor timeout behaviour
This commit is contained in:
@@ -91,7 +91,7 @@ void timespec_add_ms(timespec* ts, int ms) {
|
||||
ts->tv_nsec += ms % 1000 * 1000000;
|
||||
if (ts->tv_nsec > 1000 * 1000 * 1000) {
|
||||
ts->tv_sec++;
|
||||
ts->tv_nsec /= 1000 * 1000 * 1000;
|
||||
ts->tv_nsec -= 1000 * 1000 * 1000;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user