mirror of
https://github.com/reactos/reactos.git
synced 2024-08-20 18:35:32 +00:00
[TASKMGR]
Remove hacks for idle time. svn path=/trunk/; revision=70663
This commit is contained in:
parent
2076f09a0c
commit
fb390d657c
|
@ -302,12 +302,6 @@ void PerfDataRefresh(void)
|
||||||
/* CurrentCpuUsage% = 100 - (CurrentCpuIdle * 100) / NumberOfProcessors */
|
/* CurrentCpuUsage% = 100 - (CurrentCpuIdle * 100) / NumberOfProcessors */
|
||||||
dbIdleTime = 100.0 - dbIdleTime * 100.0 / (double)SystemBasicInfo.NumberOfProcessors; /* + 0.5; */
|
dbIdleTime = 100.0 - dbIdleTime * 100.0 / (double)SystemBasicInfo.NumberOfProcessors; /* + 0.5; */
|
||||||
dbKernelTime = 100.0 - dbKernelTime * 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 */
|
/* Store new CPU's idle and system time */
|
||||||
|
|
Loading…
Reference in a new issue