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

Hartmut Birr hartmut.birr at gmx.de
Tue Jun 21 00:03:51 CEST 2005


James Tabor wrote:

> hbirr at svn.reactos.com wrote:
>
>> Fixed a bug within the calculation of the memory load.
>>
>>
>>
>> Updated files:
>> trunk/reactos/lib/kernel32/mem/global.c
>>
> Hi!
> Is PageSize == 4096? Why is NumberOfPhysicalPages used instead?
> Thanks,
> James
> _______________________________________________
> Ros-dev mailing list
> Ros-dev at reactos.com
> http://reactos.com:8080/mailman/listinfo/ros-dev
>
>
I've reverted a bug from r16134:

*Modified: trunk/reactos/lib/kernel32/mem/global.c*

--- trunk/reactos/lib/kernel32/mem/global.c	2005-06-20 04:07:34 UTC (rev 16133)
+++ trunk/reactos/lib/kernel32/mem/global.c	2005-06-20 04:07:49 UTC (rev 16134)
@@ -407,38 +407,38 @@

  */
    lpBuffer->dwMemoryLoad = (SysBasicInfo.NumberOfPhysicalPages -
   			     SysPerfInfo.AvailablePages) * 100 /

-    			     SysBasicInfo.NumberOfPhysicalPages;

+    			     SysBasicInfo.PageSize;

 

- Hartmut


More information about the Ros-dev mailing list