瀏覽代碼

[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 15 年之前
父節點
當前提交
658c6dba59
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      src/core/monojob.c

+ 1
- 1
src/core/monojob.c 查看文件

@@ -83,7 +83,7 @@ int monojob_wait ( const char *string ) {
83 83
 			}
84 84
 		}
85 85
 		elapsed = ( currticks() - last_progress_dot );
86
-		if ( elapsed > TICKS_PER_SEC ) {
86
+		if ( elapsed >= TICKS_PER_SEC ) {
87 87
 			printf ( "." );
88 88
 			last_progress_dot = currticks();
89 89
 		}

Loading…
取消
儲存