parent
c2dba63bd4
commit
819c02dbc6
|
@ -507,7 +507,7 @@ time_t time_monotonic(timeval_t *tv);
|
|||
static inline void timeval_add_ms(timeval_t *tv, u_int ms)
|
||||
{
|
||||
tv->tv_usec += ms * 1000;
|
||||
while (tv->tv_usec > 1000000 /* 1s */)
|
||||
while (tv->tv_usec >= 1000000 /* 1s */)
|
||||
{
|
||||
tv->tv_usec -= 1000000;
|
||||
tv->tv_sec++;
|
||||
|
|
Loading…
Reference in New Issue