Parcourir la source

[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.
tags/v0.9.6
Michael Brown il y a 17 ans
Parent
révision
658c6dba59
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1
    1
      src/core/monojob.c

+ 1
- 1
src/core/monojob.c Voir le fichier

83
 			}
83
 			}
84
 		}
84
 		}
85
 		elapsed = ( currticks() - last_progress_dot );
85
 		elapsed = ( currticks() - last_progress_dot );
86
-		if ( elapsed > TICKS_PER_SEC ) {
86
+		if ( elapsed >= TICKS_PER_SEC ) {
87
 			printf ( "." );
87
 			printf ( "." );
88
 			last_progress_dot = currticks();
88
 			last_progress_dot = currticks();
89
 		}
89
 		}

Chargement…
Annuler
Enregistrer