diff options
Diffstat (limited to 'sys/arch/atari')
-rw-r--r-- | sys/arch/atari/atari/machdep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/atari/atari/machdep.c b/sys/arch/atari/atari/machdep.c index fce889d2bf7..16a72e1638d 100644 --- a/sys/arch/atari/atari/machdep.c +++ b/sys/arch/atari/atari/machdep.c @@ -1016,13 +1016,13 @@ void microtime(tvp) *tvp = time; tvp->tv_usec += clkread(); - while (tvp->tv_usec > 1000000) { + while (tvp->tv_usec >= 1000000) { tvp->tv_sec++; tvp->tv_usec -= 1000000; } if (tvp->tv_sec == lasttime.tv_sec && tvp->tv_usec <= lasttime.tv_usec && - (tvp->tv_usec = lasttime.tv_usec + 1) > 1000000) { + (tvp->tv_usec = lasttime.tv_usec + 1) >= 1000000) { tvp->tv_sec++; tvp->tv_usec -= 1000000; } |