Fixed a bug within the calculation of the memory load.
Modified: trunk/reactos/lib/kernel32/mem/global.c
_____
Modified: trunk/reactos/lib/kernel32/mem/global.c
--- trunk/reactos/lib/kernel32/mem/global.c 2005-06-20 20:26:14 UTC
(rev 16179)
+++ trunk/reactos/lib/kernel32/mem/global.c 2005-06-20 20:27:10 UTC
(rev 16180)
@@ -407,9 +407,9 @@
*/
lpBuffer->dwMemoryLoad = (SysBasicInfo.NumberOfPhysicalPages -
SysPerfInfo.AvailablePages) * 100 /
- SysBasicInfo.PageSize;
+ SysBasicInfo.NumberOfPhysicalPages;
- DPRINT1("Memory Load: %d\n",lpBuffer->dwMemoryLoad );
+ DPRINT1("Memory Load: %d\n",lpBuffer->dwMemoryLoad );
lpBuffer->ullTotalPhys = SysBasicInfo.NumberOfPhysicalPages *
SysBasicInfo.PageSize;