VirtualBox

Ignore:
Timestamp:
Oct 11, 2012 1:59:10 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
81331
Message:

Main/Metrics: Fixes for Solaris network metrics (#6345)

File:
1 edited

Legend:

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

    r43507 r43618  
    656656    mRx->init(mLength);
    657657    mTx->init(mLength);
    658     int rc = mHAL->getRawHostNetworkLoad(mInterfaceName.c_str(), &mRxPrev, &mTxPrev);
    659     AssertRC(rc);
     658    int rc = mHAL->getRawHostNetworkLoad(mShortName.c_str(), &mRxPrev, &mTxPrev);
     659    //AssertRC(rc);
    660660}
    661661
     
    679679    uint64_t rx, tx;
    680680
    681     mRc = mHAL->getRawHostNetworkLoad(mInterfaceName.c_str(), &rx, &tx);
     681    mRc = mHAL->getRawHostNetworkLoad(mShortName.c_str(), &rx, &tx);
    682682    if (RT_SUCCESS(mRc))
    683683    {
     
    687687        if (RT_UNLIKELY(mSpeed * getPeriod() == 0))
    688688        {
    689             Assert(mSpeed * getPeriod());
    690             LogFlowThisFunc(("Impossible! speed=%llu period=%d.\n", mSpeed, getPeriod()));
     689            LogFlowThisFunc(("Check cable for %s! speed=%llu period=%d.\n", mShortName.c_str(), mSpeed, getPeriod()));
    691690            mRx->put(0);
    692691            mTx->put(0);
Note: See TracChangeset for help on using the changeset viewer.

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