mirror of
https://github.com/reactos/reactos.git
synced 2025-04-21 04:37:15 +00:00
Fix Typo
svn path=/trunk/; revision=11296
This commit is contained in:
parent
10d4df0a8b
commit
f5d1a75a57
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: sysinfo.c,v 1.52 2004/10/16 18:45:03 ion Exp $
|
/* $Id: sysinfo.c,v 1.53 2004/10/16 18:56:54 ion Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -61,7 +61,7 @@ ExGetCurrentProcessorCpuUsage (
|
||||||
|
|
||||||
/* FIXME: Needs Idle Thread to be implented properly */
|
/* FIXME: Needs Idle Thread to be implented properly */
|
||||||
ScaledIdle = Pcr->PrcbData.IdleThread->KernelTime * 100;
|
ScaledIdle = Pcr->PrcbData.IdleThread->KernelTime * 100;
|
||||||
TotalTime = Pcr->PrcbData.KernelTime + Pcr->PrcbData.UserTime
|
TotalTime = Pcr->PrcbData.KernelTime + Pcr->PrcbData.UserTime;
|
||||||
if (TotalTime) PercentTime = 100 - (ScaledIdle / TotalTime);
|
if (TotalTime) PercentTime = 100 - (ScaledIdle / TotalTime);
|
||||||
CpuUsage = &PercentTime;
|
CpuUsage = &PercentTime;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue