summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Brown2008-10-12 22:27:57 +0200
committerMichael Brown2008-10-12 22:30:37 +0200
commit658c6dba597402c82d9558448bd928cd4c202657 (patch)
tree7b5ed95041969a9ded896cde9b15b5b191f1a6cf
parent[timer] Formalise the timer API (diff)
downloadipxe-658c6dba597402c82d9558448bd928cd4c202657.tar.gz
ipxe-658c6dba597402c82d9558448bd928cd4c202657.tar.xz
ipxe-658c6dba597402c82d9558448bd928cd4c202657.zip
[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.
-rw-r--r--src/core/monojob.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/monojob.c b/src/core/monojob.c
index a7e83851..3c023c40 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();
}