Module: wine Branch: oldstable Commit: 35da30e3552fa5481a97941f7b167cdb7e0f444b URL: https://gitlab.winehq.org/wine/wine/-/commit/35da30e3552fa5481a97941f7b167cd...
Author: Limstash Wong limstash.w@gmail.com Date: Fri May 20 01:31:35 2022 +0800
taskmgr: Fix the unit in memory usage graph on performance tab.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50948 Signed-off-by: Limstash Wong limstash.w@gmail.com Signed-off-by: Alexandre Julliard julliard@winehq.org (cherry picked from commit 3e9af4478dcacd08d0e6de2a8631a90b2d01f37e) Signed-off-by: Michael Stefaniuc mstefani@winehq.org
---
programs/taskmgr/graph.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/programs/taskmgr/graph.c b/programs/taskmgr/graph.c index 12f22145664..4d04017e331 100644 --- a/programs/taskmgr/graph.c +++ b/programs/taskmgr/graph.c @@ -253,8 +253,8 @@ static void Graph_DrawMemUsageGraph(HDC hDC, HWND hWnd) /* * Get the memory usage */ - CommitChargeTotal = (ULONGLONG)PerfDataGetCommitChargeTotalK(); - CommitChargeLimit = (ULONGLONG)PerfDataGetCommitChargeLimitK(); + CommitChargeTotal = (ULONGLONG)PerfDataGetCommitChargeTotalK() << 10; + CommitChargeLimit = (ULONGLONG)PerfDataGetCommitChargeLimitK() << 10;
if (CommitChargeTotal < 1024) StrFormatKBSizeW(CommitChargeTotal, Text, ARRAY_SIZE(Text));