1
0
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:
Philippe Charnier 2000-03-26 15:08:44 +00:00
parent dbb9d8f826
commit b5770cfb34
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=58629
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}

View File

@ -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;