VirtualBox

Ignore:
Timestamp:
May 30, 2013 12:37:09 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
86099
Message:

Main/PerformanceLinux: switch to the runtime function for determining total/free RAM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/darwin/PerformanceDarwin.cpp

    r44529 r46328  
    6666    virtual int getProcessMemoryUsage(RTPROCESS process, ULONG *used);
    6767private:
    68     ULONG totalRAM;
     68    ULONG    totalRAM;
    6969    uint32_t nCpus;
    7070};
     
    116116int CollectorDarwin::getHostMemoryUsage(ULONG *total, ULONG *used, ULONG *available)
    117117{
     118    AssertReturn(totalRAM, VERR_INTERNAL_ERROR);
    118119    uint64_t cb;
    119120    int rc = RTSystemQueryAvailableRam(&cb);
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