VirtualBox

Changeset 41584 in vbox for trunk


Ignore:
Timestamp:
Jun 5, 2012 5:10:42 PM (13 years ago)
Author:
vboxsync
Message:

VBoxManage/Info: print <none> when no bandwidth groups defined for VM

File:
1 edited

Legend:

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

    r40548 r41584  
    255255    CHECK_ERROR_RET(bwCtrl, GetAllBandwidthGroups(ComSafeArrayAsOutParam(bwGroups)), rc);
    256256
     257    if (bwGroups.size() && details != VMINFO_MACHINEREADABLE)
     258        RTPrintf("\n\n");
    257259    for (size_t i = 0; i < bwGroups.size(); i++)
    258260    {
     
    271273            RTPrintf("Name: '%ls', Type: %s, Limit: %d Mbytes/sec\n", strName.raw(), pszType, cMaxMbPerSec);
    272274    }
    273     if (details != VMINFO_MACHINEREADABLE && bwGroups.size() != 0)
    274         RTPrintf("\n");
     275    if (details != VMINFO_MACHINEREADABLE)
     276        RTPrintf(bwGroups.size() != 0 ? "\n" : "<none>\n\n");
    275277
    276278    return rc;
     
    19241926     */
    19251927    if (details != VMINFO_MACHINEREADABLE)
    1926         RTPrintf("Bandwidth groups:\n\n");
     1928        RTPrintf("Bandwidth groups:  ");
    19271929    {
    19281930        ComPtr<IBandwidthControl> bwCtrl;
Note: See TracChangeset for help on using the changeset viewer.

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