From f35b93c655ba947eb55d8dd10c66391e7e297692 Mon Sep 17 00:00:00 2001 From: Gerald Pfeifer Date: Sat, 29 Dec 2007 21:06:17 +0100 Subject: [PATCH] taskmgr: Remove redundant out-of-domain checking which is already handled by PerfDataGetProcessorUsage() and PerfDataGetProcessorSystemUsage(). --- programs/taskmgr/graph.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/programs/taskmgr/graph.c b/programs/taskmgr/graph.c index 17970103929..7fcfe3dc3b6 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