diff --git a/tools/dirtpan/dirtpan.c b/tools/dirtpan/dirtpan.c index 8be0b0e..9437efc 100644 --- a/tools/dirtpan/dirtpan.c +++ b/tools/dirtpan/dirtpan.c @@ -183,7 +183,7 @@ static struct timeval *timeout(int ms) t.tv_sec--; t.tv_usec += 1000000; } - while (t.tv_usec > 1000000) { + while (t.tv_usec >= 1000000) { t.tv_sec++; t.tv_usec -= 1000000; }