mirror of
https://github.com/reactos/reactos.git
synced 2025-04-20 20:36:35 +00:00
Fixed a bug within the calculation of the memory load.
svn path=/trunk/; revision=16180
This commit is contained in:
parent
1bb602a345
commit
f4d5dc8eb3
1 changed files with 2 additions and 2 deletions
|
@ -407,7 +407,7 @@ GlobalMemoryStatusEx(LPMEMORYSTATUSEX lpBuffer)
|
||||||
*/
|
*/
|
||||||
lpBuffer->dwMemoryLoad = (SysBasicInfo.NumberOfPhysicalPages -
|
lpBuffer->dwMemoryLoad = (SysBasicInfo.NumberOfPhysicalPages -
|
||||||
SysPerfInfo.AvailablePages) * 100 /
|
SysPerfInfo.AvailablePages) * 100 /
|
||||||
SysBasicInfo.PageSize;
|
SysBasicInfo.NumberOfPhysicalPages;
|
||||||
|
|
||||||
DPRINT1("Memory Load: %d\n",lpBuffer->dwMemoryLoad );
|
DPRINT1("Memory Load: %d\n",lpBuffer->dwMemoryLoad );
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue