From 2a1330083d04c7cffd4f1e06040860ea28f45c1c Mon Sep 17 00:00:00 2001 From: Eladash <18193363+elad335@users.noreply.github.com> Date: Mon, 1 Jan 2024 19:47:35 +0200 Subject: [PATCH] Fix PPU progress dialog hint --- rpcs3/Emu/system_progress.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Emu/system_progress.cpp b/rpcs3/Emu/system_progress.cpp index 14885ea629..666c34a4e9 100644 --- a/rpcs3/Emu/system_progress.cpp +++ b/rpcs3/Emu/system_progress.cpp @@ -201,7 +201,7 @@ void progress_dialog_server::operator()() if (pdone < ptotal && g_cfg.misc.show_ppu_compilation_hint) { const u64 passed_usec = (get_system_time() - start_time); - const u64 remaining_usec = passed_usec * (pdone ? ((static_cast(ptotal) - pdone) / pdone) : ptotal); + const u64 remaining_usec = pdone ? utils::rational_mul(passed_usec, pdone, static_cast(ptotal) - pdone) : (passed_usec * ptotal); // Only show compile notification if we estimate at least 100ms if (remaining_usec >= 100'000ULL)