VirtualBox

Changeset 43548 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Oct 5, 2012 10:30:12 AM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
81160
Message:

Runtime/r3/linux: improved RTSystemQueryAvailableRam() and added a TODO

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/linux/systemmem-linux.cpp

    r43535 r43548  
    6666    if (rc == 0)
    6767    {
    68         *pcb = (uint64_t)(info.freeram * (unsigned long)info.mem_unit);
     68        /* XXX Actually this is not quite correct. We would also need to add the cached
     69         *     RAM but this information is not available in sysinfo. */
     70        *pcb = (uint64_t)((info.freeram + info.bufferram) * (unsigned long)info.mem_unit);
    6971        return VINF_SUCCESS;
    7072    }
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette