VirtualBox

Changeset 43524 in vbox


Ignore:
Timestamp:
Oct 3, 2012 6:20:22 AM (12 years ago)
Author:
vboxsync
Message:

Main/Metrics: Register metrics for bridged interfaces only (#6345)

File:
1 edited

Legend:

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

    r43471 r43524  
    28632863    /* At this point listCopy will contain newly discovered interfaces only. */
    28642864    for (itNew = listCopy.begin(); itNew != listCopy.end(); ++itNew)
    2865         (*itNew)->registerMetrics(aCollector, this);
     2865    {
     2866        HostNetworkInterfaceType_T t;
     2867        HRESULT hr = (*it)->COMGETTER(InterfaceType)(&t);
     2868        if (FAILED(hr))
     2869        {
     2870            Bstr n;
     2871            (*it)->COMGETTER(Name) (n.asOutParam());
     2872            LogRel(("Host::updateNetIfList: failed to get interface type for %ls\n", n.raw()));
     2873        }
     2874        else if (t == HostNetworkInterfaceType_Bridged)
     2875            (*itNew)->registerMetrics(aCollector, this);
     2876    }
    28662877    m->llNetIfs = list;
    28672878    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