mirror of
https://git.FreeBSD.org/src.git
synced 2024-11-28 08:02:54 +00:00
1000000 usec -> 1 sec 0 usec; fix.
This commit is contained in:
parent
dbb9d8f826
commit
b5770cfb34
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=58629
@ -524,7 +524,7 @@ main(argc, argv)
|
||||
IF_DEBUG(DEBUG_TIMEOUT)
|
||||
log(LOG_DEBUG, 0, "TIMEOUT: secs %d, diff secs %d, diff usecs %d", secs, difftime.tv_sec, difftime.tv_usec );
|
||||
#endif
|
||||
while (difftime.tv_usec > 1000000) {
|
||||
while (difftime.tv_usec >= 1000000) {
|
||||
difftime.tv_sec++;
|
||||
difftime.tv_usec -= 1000000;
|
||||
}
|
||||
|
@ -585,7 +585,7 @@ main(argc, argv)
|
||||
IF_DEBUG(DEBUG_TIMEOUT)
|
||||
log(LOG_DEBUG, 0, "TIMEOUT: secs %d, diff secs %d, diff usecs %d", secs, difftime.tv_sec, difftime.tv_usec);
|
||||
#endif
|
||||
while (difftime.tv_usec > 1000000)
|
||||
while (difftime.tv_usec >= 1000000)
|
||||
{
|
||||
difftime.tv_sec++;
|
||||
difftime.tv_usec -= 1000000;
|
||||
|
Loading…
Reference in New Issue
Block a user