Gerald Pfeifer : taskmgr: Remove redundant out-of-domain checking which is already handled by PerfDataGetProcessorUsage () and PerfDataGetProcessorSystemUsage().
Alexandre Julliard
julliard at winehq.org
Mon Dec 31 12:32:38 CST 2007
Module: wine
Branch: master
Commit: f35b93c655ba947eb55d8dd10c66391e7e297692
URL: http://source.winehq.org/git/wine.git/?a=commit;h=f35b93c655ba947eb55d8dd10c66391e7e297692
Author: Gerald Pfeifer <gerald at pfeifer.com>
Date: Sat Dec 29 21:06:17 2007 +0100
taskmgr: Remove redundant out-of-domain checking which is already handled by PerfDataGetProcessorUsage() and PerfDataGetProcessorSystemUsage().
---
programs/taskmgr/graph.c | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
diff --git a/programs/taskmgr/graph.c b/programs/taskmgr/graph.c
index 1797010..7fcfe3d 100644
--- a/programs/taskmgr/graph.c
+++ b/programs/taskmgr/graph.c
@@ -72,10 +72,6 @@ static void Graph_DrawCpuUsageGraph(HDC hDC, HWND hWnd)
*/
CpuUsage = PerfDataGetProcessorUsage();
CpuKernelUsage = PerfDataGetProcessorSystemUsage();
- if (CpuUsage < 0) CpuUsage = 0;
- if (CpuUsage > 100) CpuUsage = 100;
- if (CpuKernelUsage < 0) CpuKernelUsage = 0;
- if (CpuKernelUsage > 100) CpuKernelUsage = 100;
/*
* Check and see how many digits it will take
More information about the wine-cvs
mailing list