Commit f35b93c6 authored by Gerald Pfeifer's avatar Gerald Pfeifer Committed by Alexandre Julliard

taskmgr: Remove redundant out-of-domain checking which is already handled by…

taskmgr: Remove redundant out-of-domain checking which is already handled by PerfDataGetProcessorUsage() and PerfDataGetProcessorSystemUsage().
parent fde4e4b6
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment