cond_var #42

Merged
andrey merged 2 commits from cond_var into master 2020-09-25 13:34:21 +03:00
Showing only changes of commit 829f0af9d2 - Show all commits

View File

@@ -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;
}
}