1000000 usecs to 1 sec conversion
This commit is contained in:
parent
7718805b57
commit
92c926c438
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=61028
@ -248,7 +248,7 @@ parse_time(char *time_string, struct timeval base_time)
|
||||
result.tv_sec += base_time.tv_sec;
|
||||
result.tv_usec += base_time.tv_usec;
|
||||
|
||||
if ( result.tv_usec > 1000000 )
|
||||
if ( result.tv_usec >= 1000000 )
|
||||
{
|
||||
result.tv_usec -= 1000000;
|
||||
++result.tv_sec;
|
||||
|
Loading…
Reference in New Issue
Block a user