mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-26 12:42:41 +01:00
Fix PPU progress dialog hint
This commit is contained in:
parent
d03393ffe9
commit
2a1330083d
@ -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<u64>(ptotal) - pdone) / pdone) : ptotal);
|
||||
const u64 remaining_usec = pdone ? utils::rational_mul<u64>(passed_usec, pdone, static_cast<u64>(ptotal) - pdone) : (passed_usec * ptotal);
|
||||
|
||||
// Only show compile notification if we estimate at least 100ms
|
||||
if (remaining_usec >= 100'000ULL)
|
||||
|
Loading…
Reference in New Issue
Block a user