Changeset 40471 in vbox for trunk/src/VBox
- Timestamp:
- Mar 15, 2012 6:22:17 AM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 76840
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageBandwidthControl.cpp
r40470 r40471 217 217 if (FAILED(showBandwidthGroups(rptrBWControl, enmDetails))) 218 218 return RTEXITCODE_FAILURE; 219 #if 0220 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 #endif240 219 241 220 return RTEXITCODE_SUCCESS;
Note:
See TracChangeset
for help on using the changeset viewer.