VirtualBox

Changeset 4529 in vbox


Ignore:
Timestamp:
Sep 5, 2007 9:34:11 AM (17 years ago)
Author:
vboxsync
Message:

Query memory balloon size & statistics update interval during IGuest creation.

File:
1 edited

Legend:

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

    r4528 r4529  
    6666    autoInitSpan.setSucceeded();
    6767
    68     /* Default is not to report guest statistics at all */
    69     mStatUpdateInterval = 0;
    70 
    71     /* Default is no ballooning */
    72     mMemoryBalloonSize = 0;
     68    ULONG aMemoryBalloonSize;
     69    HRESULT ret = mParent->machine()->COMGETTER(MemoryBalloonSize)(&aMemoryBalloonSize);
     70    if (ret == S_OK)
     71        mMemoryBalloonSize = aMemoryBalloonSize;
     72    else
     73        mMemoryBalloonSize = 0;                     /* Default is no ballooning */
     74
     75    ULONG aStatUpdateInterval;
     76    ret = mParent->machine()->COMGETTER(StatisticsUpdateInterval)(&aStatUpdateInterval);
     77    if (ret == S_OK)
     78        mStatUpdateInterval = aStatUpdateInterval;
     79    else
     80        mStatUpdateInterval = 0;                    /* Default is not to report guest statistics at all */
     81
    7382    return S_OK;
    7483}
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