mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
1000000 usec -> 1 sec 0 usec; fix
This commit is contained in:
parent
fae643c579
commit
f793da754a
1 changed files with 1 additions and 1 deletions
|
|
@ -1144,7 +1144,7 @@ get_ticks()
|
|||
/*
|
||||
* Adjust difference timeval
|
||||
*/
|
||||
if ( timediff.tv_usec > 1000000 ) {
|
||||
if ( timediff.tv_usec >= 1000000 ) {
|
||||
timediff.tv_usec -= 1000000;
|
||||
timediff.tv_sec++;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue