mirror of
https://github.com/memtest86plus/memtest86plus.git
synced 2026-10-12 08:54:55 -05:00
Fix a cast issue that broke the run time clock on (very) fast CPUs
This commit is contained in:
1 parent
1c4d7f4089
commit
ddbee66c85
1 file changed
+1
-1
+1
-1
@@ -509,7 +509,7 @@ void do_tick(int my_cpu)
|
||||
if (clks_per_msec > 0) {
|
||||
uint64_t current_time = get_tsc();
|
||||
|
||||
int secs = (current_time - run_start_time) / (1000 * clks_per_msec);
|
||||
int secs = (current_time - run_start_time) / (1000 * (uint64_t)clks_per_msec);
|
||||
int mins = secs / 60; secs %= 60; act_sec = secs;
|
||||
int hours = mins / 60; mins %= 60;
|
||||
display_run_time(hours, mins, secs);
|
||||
|
||||
Reference in new issue
Block a user