[ros-diffs] [hbirr] 16180: Fixed a bug within the calculation of the memory load.

hbirr at svn.reactos.com hbirr at svn.reactos.com
Mon Jun 20 22:27:16 CEST 2005


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;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20050620/2c6d2bd2/attachment.html


More information about the Ros-diffs mailing list