From 437f357dd1278c034aa8dcf20a2e9b9a46cf328d Mon Sep 17 00:00:00 2001 From: Thomas Bluemel Date: Mon, 14 Mar 2005 13:24:46 +0000 Subject: [PATCH] report idling statistics from the idle process, not from the system process svn path=/trunk/; revision=14059 --- reactos/ntoskrnl/ex/sysinfo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/ntoskrnl/ex/sysinfo.c b/reactos/ntoskrnl/ex/sysinfo.c index 9ec4a3c8eed..4a737fff823 100644 --- a/reactos/ntoskrnl/ex/sysinfo.c +++ b/reactos/ntoskrnl/ex/sysinfo.c @@ -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,