VirtualBox

Changeset 43471 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Sep 28, 2012 6:07:55 PM (12 years ago)
Author:
vboxsync
Message:

Main/Metrics: Better call setVirtualBox before registerMetrics (#6439)

File:
1 edited

Legend:

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

    r43470 r43471  
    28552855            (*itOld)->unregisterMetrics(aCollector, this);
    28562856    }
    2857     /* At this point listCopy will contain newly discovered interfaces only. */
    2858     for (itNew = listCopy.begin(); itNew != listCopy.end(); ++itNew)
    2859         (*itNew)->registerMetrics(aCollector, this);
    28602857    /*
    28612858     * Need to set the references to VirtualBox object in all interface objects
     
    28642861    for (itNew = list.begin(); itNew != list.end(); ++itNew)
    28652862        (*itNew)->setVirtualBox(m->pParent);
     2863    /* At this point listCopy will contain newly discovered interfaces only. */
     2864    for (itNew = listCopy.begin(); itNew != listCopy.end(); ++itNew)
     2865        (*itNew)->registerMetrics(aCollector, this);
    28662866    m->llNetIfs = list;
    28672867    return S_OK;
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