From 56cc0227c3a395b6fcbf3cfbcaa31e6d2e496bf7 Mon Sep 17 00:00:00 2001 From: Fiora Date: Fri, 15 Aug 2014 10:24:35 -0700 Subject: [PATCH] Debugger: fix blowup calculation again Wasn't quiiite right in 3c2567 either. --- Source/Core/DolphinWX/Debugger/JitWindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/DolphinWX/Debugger/JitWindow.cpp b/Source/Core/DolphinWX/Debugger/JitWindow.cpp index 5fbd08c6d8..4721a78532 100644 --- a/Source/Core/DolphinWX/Debugger/JitWindow.cpp +++ b/Source/Core/DolphinWX/Debugger/JitWindow.cpp @@ -177,9 +177,9 @@ void CJitWindow::Compare(u32 em_address) sptr += sprintf(sptr, "%i estimated cycles\n", st.numCycles); sptr += sprintf(sptr, "Num instr: PPC: %i x86: %i (blowup: %i%%)\n", - code_block.m_num_instructions, num_x86_instructions, (100 * num_x86_instructions / code_block.m_num_instructions - 1)); + code_block.m_num_instructions, num_x86_instructions, 100 * num_x86_instructions / code_block.m_num_instructions - 100); sptr += sprintf(sptr, "Num bytes: PPC: %i x86: %i (blowup: %i%%)\n", - code_block.m_num_instructions * 4, block->codeSize, (100 * block->codeSize / (4 * code_block.m_num_instructions) - 1)); + code_block.m_num_instructions * 4, block->codeSize, 100 * block->codeSize / (4 * code_block.m_num_instructions) - 100); ppc_box->SetValue(StrToWxStr((char*)xDis)); }