mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
1000000 usecs to 1 sec conversion
This commit is contained in:
parent
7718805b57
commit
92c926c438
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue