Changeset 43456 in vbox for trunk/src/VBox/Main/src-server/Performance.cpp
- Timestamp:
- Sep 28, 2012 6:36:09 AM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 80986
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/Performance.cpp
r43453 r43456 663 663 void HostNetworkLoadRaw::preCollect(CollectorHints& /* hints */, uint64_t /* iTick */) 664 664 { 665 if (RT_FAILURE(mRc)) 666 { 667 ComPtr<IHostNetworkInterface> networkInterface; 668 ComPtr<IHost> host = getObject(); 669 HRESULT hrc = host->FindHostNetworkInterfaceByName(com::Bstr(mInterfaceName).raw(), networkInterface.asOutParam()); 670 if (SUCCEEDED(hrc)) 671 { 672 LogRel(("Failed to collect network metrics for %s: %Rrc (%d).", mInterfaceName.c_str(), mRc, mRc)); 673 mRc = VINF_SUCCESS; 674 } 675 } 665 676 } 666 677 … … 669 680 uint64_t rx, tx, speed; 670 681 671 int rc = mHAL->getRawHostNetworkLoad(mInterfaceName.c_str(), &rx, &tx, &speed);672 if (RT_SUCCESS( rc))682 mRc = mHAL->getRawHostNetworkLoad(mInterfaceName.c_str(), &rx, &tx, &speed); 683 if (RT_SUCCESS(mRc)) 673 684 { 674 685 uint64_t rxDiff = rx - mRxPrev; … … 691 702 mTxPrev = tx; 692 703 } 704 else 705 LogFlowThisFunc(("Failed to collect data: %Rrc (%d)." 706 " Will update the list of interfaces...\n", mRc,mRc)); 693 707 } 694 708 … … 1279 1293 if (patternMatch((*it).second.c_str(), name.c_str())) 1280 1294 { 1281 LogFlowThisFunc(("...found!\n"));1295 //LogFlowThisFunc(("...found!\n")); 1282 1296 return true; 1283 1297 }
Note:
See TracChangeset
for help on using the changeset viewer.