1000000 usec -> 1 sec 0 usec; fix
This commit is contained in:
parent
fae643c579
commit
f793da754a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=58631
@ -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 New Issue
Block a user