Commit fde1e5b7 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(setup_timer): Fixed a fence error that triggered an assertion with a

	probability of one in a million.
parent 52ae365f
......@@ -162,7 +162,7 @@ setup_timer(struct timeval *tv,
tv->tv_sec += interval.tv_sec;
tv->tv_usec += interval.tv_usec;
if (tv->tv_usec > 1000000)
if (tv->tv_usec >= 1000000)
{
tv->tv_usec -= 1000000;
tv->tv_sec++;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment