mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-30 04:13:33 +00:00
report idling statistics from the idle process, not from the system process
svn path=/trunk/; revision=14059
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user