VirtualBox

Changeset 20384 in vbox


Ignore:
Timestamp:
Jun 8, 2009 8:46:55 AM (16 years ago)
Author:
vboxsync
Message:

LogRel() the amount of available host memory as well

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/ConsoleImpl.cpp

    r20382 r20384  
    42224222    ComPtr <IHost> host;
    42234223    virtualBox->COMGETTER(Host)(host.asOutParam());
    4224     ULONG uHostMemoryMB;
    4225     host->COMGETTER(MemorySize)(&uHostMemoryMB);
     4224    ULONG uHostRamMb = 0, uHostRamAvailMb = 0;
     4225    host->COMGETTER(MemorySize)(&uHostRamMb);
     4226    host->COMGETTER(MemoryAvailable)(&uHostRamAvailMb);
    42264227    if (uLogHistoryCount)
    42274228    {
     
    42824283        if (RT_SUCCESS(vrc) || vrc == VERR_BUFFER_OVERFLOW)
    42834284            RTLogRelLogger(loggerRelease, 0, ~0U, "OS Service Pack: %s\n", szTmp);
    4284         RTLogRelLogger(loggerRelease, 0, ~0U, "Host RAM: %uMB\n", uHostMemoryMB);
     4285        RTLogRelLogger(loggerRelease, 0, ~0U, "Host RAM: %uMB RAM, available: %uMB\n",
     4286                       uHostRamMb, uHostRamAvailMb);
    42854287        /* the package type is interesting for Linux distributions */
    42864288        char szExecName[RTPATH_MAX];
Note: See TracChangeset for help on using the changeset viewer.

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