VirtualBox

Changeset 40471 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Mar 15, 2012 6:22:17 AM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
76840
Message:

VBoxManage: droped redundant code in bandwidthctl (#5582)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageBandwidthControl.cpp

    r40470 r40471  
    217217    if (FAILED(showBandwidthGroups(rptrBWControl, enmDetails)))
    218218        return RTEXITCODE_FAILURE;
    219 #if 0
    220     com::SafeIfaceArray<IBandwidthGroup> bwGroups;
    221     CHECK_ERROR2_RET(rptrBWControl, GetAllBandwidthGroups(ComSafeArrayAsOutParam(bwGroups)), RTEXITCODE_FAILURE);
    222     for (size_t i = 0; i < bwGroups.size(); i++)
    223     {
    224         Bstr strName;
    225         ULONG cMaxMbPerSec;
    226         BandwidthGroupType_T enmType;
    227 
    228         CHECK_ERROR2_RET(bwGroups[i], COMGETTER(Name)(strName.asOutParam()), RTEXITCODE_FAILURE);
    229         CHECK_ERROR2_RET(bwGroups[i], COMGETTER(Type)(&enmType), RTEXITCODE_FAILURE);
    230         CHECK_ERROR2_RET(bwGroups[i], COMGETTER(MaxMbPerSec)(&cMaxMbPerSec), RTEXITCODE_FAILURE);
    231 
    232         RTPrintf(enmDetails == VMINFO_MACHINEREADABLE ?
    233                  "Group=%ls\nType=%s\nLimit=%u\n\n" :
    234                  "%-30ls %-10s %u MBytes/sec\n",
    235                  strName.raw(),
    236                  typeToString(enmType),
    237                  cMaxMbPerSec);
    238     }
    239 #endif
    240219
    241220    return RTEXITCODE_SUCCESS;
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