Limstash Wong : taskmgr: Fix the unit in memory usage graph on performance tab.

Alexandre Julliard julliard at winehq.org
Mon May 23 15:51:51 CDT 2022


Module: wine
Branch: master
Commit: 3e9af4478dcacd08d0e6de2a8631a90b2d01f37e
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=3e9af4478dcacd08d0e6de2a8631a90b2d01f37e

Author: Limstash Wong <limstash.w at 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 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at 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));




More information about the wine-cvs mailing list