report idling statistics from the idle process, not from the system process

svn path=/trunk/; revision=14059
This commit is contained in:
Thomas Bluemel 2005-03-14 13:24:46 +00:00
parent 009fddf0b2
commit 437f357dd1

View file

@ -411,7 +411,7 @@ QSI_DEF(SystemPerformanceInformation)
return (STATUS_INFO_LENGTH_MISMATCH);
}
TheIdleProcess = PsInitialSystemProcess; /* FIXME */
TheIdleProcess = PsIdleProcess;
Spi->IdleTime.QuadPart = TheIdleProcess->Pcb.KernelTime * 100000LL;
@ -1040,7 +1040,7 @@ QSI_DEF(SystemFullMemoryInformation)
}
DPRINT("SystemFullMemoryInformation\n");
TheIdleProcess = PsInitialSystemProcess; /* FIXME */
TheIdleProcess = PsIdleProcess;
DPRINT("PID: %d, KernelTime: %u PFFree: %d PFUsed: %d\n",
TheIdleProcess->UniqueProcessId,