report idling statistics from the idle process, not from the system
process
Modified: trunk/reactos/ntoskrnl/ex/sysinfo.c
_____
Modified: trunk/reactos/ntoskrnl/ex/sysinfo.c
--- trunk/reactos/ntoskrnl/ex/sysinfo.c 2005-03-14 13:18:29 UTC (rev
14058)
+++ trunk/reactos/ntoskrnl/ex/sysinfo.c 2005-03-14 13:24:46 UTC (rev
14059)
@@ -411,7 +411,7 @@
return (STATUS_INFO_LENGTH_MISMATCH);
}
- TheIdleProcess = PsInitialSystemProcess; /* FIXME */
+ TheIdleProcess = PsIdleProcess;
Spi->IdleTime.QuadPart = TheIdleProcess->Pcb.KernelTime *
100000LL;
@@ -1040,7 +1040,7 @@
}
DPRINT("SystemFullMemoryInformation\n");
- TheIdleProcess = PsInitialSystemProcess; /* FIXME */
+ TheIdleProcess = PsIdleProcess;
DPRINT("PID: %d, KernelTime: %u PFFree: %d PFUsed: %d\n",
TheIdleProcess->UniqueProcessId,