Changeset 93857 in vbox
- Timestamp:
- Feb 19, 2022 4:24:43 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp
r93855 r93857 1464 1464 * Bandwidth groups. 1465 1465 */ 1466 ComPtr<IBandwidthControl> bwCtrl; 1467 1468 hrc = pMachine->COMGETTER(BandwidthControl)(bwCtrl.asOutParam()); H(); 1469 1470 com::SafeIfaceArray<IBandwidthGroup> bwGroups; 1471 hrc = bwCtrl->GetAllBandwidthGroups(ComSafeArrayAsOutParam(bwGroups)); H(); 1472 1466 1473 PCFGMNODE pAc; 1474 InsertConfigNode(pPDM, "AsyncCompletion", &pAc); 1467 1475 PCFGMNODE pAcFile; 1476 InsertConfigNode(pAc, "File", &pAcFile); 1468 1477 PCFGMNODE pAcFileBwGroups; 1469 ComPtr<IBandwidthControl> bwCtrl;1470 com::SafeIfaceArray<IBandwidthGroup> bwGroups;1471 1472 hrc = pMachine->COMGETTER(BandwidthControl)(bwCtrl.asOutParam()); H();1473 1474 hrc = bwCtrl->GetAllBandwidthGroups(ComSafeArrayAsOutParam(bwGroups)); H();1475 1476 InsertConfigNode(pPDM, "AsyncCompletion", &pAc);1477 InsertConfigNode(pAc, "File", &pAcFile);1478 1478 InsertConfigNode(pAcFile, "BwGroups", &pAcFileBwGroups); 1479 1479 #ifdef VBOX_WITH_NETSHAPER 1480 1480 PCFGMNODE pNetworkShaper; 1481 InsertConfigNode(pPDM, "NetworkShaper", &pNetworkShaper); 1481 1482 PCFGMNODE pNetworkBwGroups; 1482 1483 InsertConfigNode(pPDM, "NetworkShaper", &pNetworkShaper);1484 1483 InsertConfigNode(pNetworkShaper, "BwGroups", &pNetworkBwGroups); 1485 1484 #endif /* VBOX_WITH_NETSHAPER */ … … 1488 1487 { 1489 1488 Bstr strName; 1490 LONG64 cMaxBytesPerSec;1491 BandwidthGroupType_T enmType;1492 1493 hrc = bwGroups[i]->COMGETTER(Name)(strName.asOutParam()); H();1494 hrc = bwGroups[i]->COMGETTER(Type)(&enmType); H();1495 hrc = bwGroups[i]->COMGETTER(MaxBytesPerSec)(&cMaxBytesPerSec); H();1496 1497 1489 if (strName.isEmpty()) 1498 1490 return pVMM->pfnVMR3SetError(pUVM, VERR_CFGM_NO_NODE, RT_SRC_POS, N_("No bandwidth group name specified")); 1499 1491 1492 BandwidthGroupType_T enmType = BandwidthGroupType_Null; 1493 hrc = bwGroups[i]->COMGETTER(Type)(&enmType); H(); 1494 LONG64 cMaxBytesPerSec = 0; 1495 hrc = bwGroups[i]->COMGETTER(MaxBytesPerSec)(&cMaxBytesPerSec); H(); 1500 1496 if (enmType == BandwidthGroupType_Disk) 1501 1497 {
Note:
See TracChangeset
for help on using the changeset viewer.