You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There seems to still be confusion between what units GetPhysicalmemory() returns. Comment in MachineInfo.cpp reads that total physical memory returned is in kilobytes, however extractor.cpp divides the value by 1024_1024_1024, which assumes the memory returned is in bytes. I believe there was a ticket in the old SVN system for this.
In addition, at least on my Ubuntu machine, sysconf(_SC_PHYS_PAGES) * sysconf(_SC_PAGESIZE) returns the total memory in bytes, meaning that the result should be divided by 1024 to stay consistent with Apple/FreeBSD/Windows results.
The text was updated successfully, but these errors were encountered:
There seems to still be confusion between what units GetPhysicalmemory() returns. Comment in MachineInfo.cpp reads that total physical memory returned is in kilobytes, however extractor.cpp divides the value by 1024_1024_1024, which assumes the memory returned is in bytes. I believe there was a ticket in the old SVN system for this.
In addition, at least on my Ubuntu machine, sysconf(_SC_PHYS_PAGES) * sysconf(_SC_PAGESIZE) returns the total memory in bytes, meaning that the result should be divided by 1024 to stay consistent with Apple/FreeBSD/Windows results.
The text was updated successfully, but these errors were encountered: