Author: spetreolle
Date: Sat Jan 30 17:18:08 2016
New Revision: 70663
URL:
http://svn.reactos.org/svn/reactos?rev=70663&view=rev
Log:
[TASKMGR]
Remove hacks for idle time.
Modified:
trunk/reactos/base/applications/taskmgr/perfdata.c
Modified: trunk/reactos/base/applications/taskmgr/perfdata.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/taskmgr/…
==============================================================================
--- trunk/reactos/base/applications/taskmgr/perfdata.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/taskmgr/perfdata.c [iso-8859-1] Sat Jan 30 17:18:08
2016
@@ -302,12 +302,6 @@
/* CurrentCpuUsage% = 100 - (CurrentCpuIdle * 100) / NumberOfProcessors */
dbIdleTime = 100.0 - dbIdleTime * 100.0 /
(double)SystemBasicInfo.NumberOfProcessors; /* + 0.5; */
dbKernelTime = 100.0 - dbKernelTime * 100.0 /
(double)SystemBasicInfo.NumberOfProcessors; /* + 0.5; */
-
- if (dbIdleTime < 0.0) dbIdleTime = 0.0;
- if (dbIdleTime > 100.0) dbIdleTime = 100.0;
- if (dbKernelTime < 0.0) dbKernelTime = 0.0;
- if (dbKernelTime > 100.0) dbKernelTime = 100.0;
-
}
/* Store new CPU's idle and system time */