mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
Fixed a bug within the calculation of the memory load.
svn path=/trunk/; revision=16180
This commit is contained in:
@@ -407,9 +407,9 @@ GlobalMemoryStatusEx(LPMEMORYSTATUSEX lpBuffer)
|
||||
*/
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user