mirror of
https://github.com/reactos/reactos.git
synced 2024-12-31 19:42:51 +00:00
report idling statistics from the idle process, not from the system process
svn path=/trunk/; revision=14059
This commit is contained in:
parent
009fddf0b2
commit
437f357dd1
1 changed files with 2 additions and 2 deletions
|
@ -411,7 +411,7 @@ QSI_DEF(SystemPerformanceInformation)
|
||||||
return (STATUS_INFO_LENGTH_MISMATCH);
|
return (STATUS_INFO_LENGTH_MISMATCH);
|
||||||
}
|
}
|
||||||
|
|
||||||
TheIdleProcess = PsInitialSystemProcess; /* FIXME */
|
TheIdleProcess = PsIdleProcess;
|
||||||
|
|
||||||
Spi->IdleTime.QuadPart = TheIdleProcess->Pcb.KernelTime * 100000LL;
|
Spi->IdleTime.QuadPart = TheIdleProcess->Pcb.KernelTime * 100000LL;
|
||||||
|
|
||||||
|
@ -1040,7 +1040,7 @@ QSI_DEF(SystemFullMemoryInformation)
|
||||||
}
|
}
|
||||||
DPRINT("SystemFullMemoryInformation\n");
|
DPRINT("SystemFullMemoryInformation\n");
|
||||||
|
|
||||||
TheIdleProcess = PsInitialSystemProcess; /* FIXME */
|
TheIdleProcess = PsIdleProcess;
|
||||||
|
|
||||||
DPRINT("PID: %d, KernelTime: %u PFFree: %d PFUsed: %d\n",
|
DPRINT("PID: %d, KernelTime: %u PFFree: %d PFUsed: %d\n",
|
||||||
TheIdleProcess->UniqueProcessId,
|
TheIdleProcess->UniqueProcessId,
|
||||||
|
|
Loading…
Reference in a new issue