VirtualBox

Changeset 20382 in vbox for trunk/src


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

LogRel() the amount of host memory

File:
1 edited

Legend:

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

    r20220 r20382  
    42204220    ULONG uLogHistoryCount = 3;
    42214221    systemProperties->COMGETTER(LogHistoryCount)(&uLogHistoryCount);
     4222    ComPtr <IHost> host;
     4223    virtualBox->COMGETTER(Host)(host.asOutParam());
     4224    ULONG uHostMemoryMB;
     4225    host->COMGETTER(MemorySize)(&uHostMemoryMB);
    42224226    if (uLogHistoryCount)
    42234227    {
     
    42784282        if (RT_SUCCESS(vrc) || vrc == VERR_BUFFER_OVERFLOW)
    42794283            RTLogRelLogger(loggerRelease, 0, ~0U, "OS Service Pack: %s\n", szTmp);
     4284        RTLogRelLogger(loggerRelease, 0, ~0U, "Host RAM: %uMB\n", uHostMemoryMB);
    42804285        /* the package type is interesting for Linux distributions */
    42814286        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