[PATCH] taskmgr: Fix the unit in memory usage graph on performance tab
Limstash Wong
limstash.w at gmail.com
Thu May 19 12:31:35 CDT 2022
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50948
Signed-off-by: Limstash Wong <limstash.w at gmail.com>
---
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));
--
2.36.1
More information about the wine-devel
mailing list