From: Michael Brown Date: Sun, 12 Oct 2008 20:27:57 +0000 (+0100) Subject: [monojob] Allow for extremely slow system timers X-Git-Tag: v0.9.6~82 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=658c6dba597402c82d9558448bd928cd4c202657;p=thirdparty%2Fipxe.git [monojob] Allow for extremely slow system timers The EFI timer runs at one tick per second, so using ">" rather than ">=" results in a two-second gap between dots. --- diff --git a/src/core/monojob.c b/src/core/monojob.c index a7e838514..3c023c402 100644 --- a/src/core/monojob.c +++ b/src/core/monojob.c @@ -83,7 +83,7 @@ int monojob_wait ( const char *string ) { } } elapsed = ( currticks() - last_progress_dot ); - if ( elapsed > TICKS_PER_SEC ) { + if ( elapsed >= TICKS_PER_SEC ) { printf ( "." ); last_progress_dot = currticks(); }