VirtualBox

Ignore:
Timestamp:
Mar 4, 2016 12:05:32 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
105855
Message:

FE/VBoxManage: VBoxManageMetrics.cpp: Slightly tweaked output for metrics listing/querying.

File:
1 edited

Legend:

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

    r57358 r59922  
    197197    LONG minimum, maximum;
    198198    RTPrintf(
    199 "Object     Metric               Unit Minimum    Maximum    Period     Count      Description\n"
    200 "---------- -------------------- ---- ---------- ---------- ---------- ---------- -----------\n");
     199"Object          Metric                                   Unit    Minimum    Maximum     Period      Count Description\n"
     200"--------------- ---------------------------------------- ---- ---------- ---------- ---------- ---------- -----------\n");
    201201    for (size_t i = 0; i < metricInfo.size(); i++)
    202202    {
     
    209209        CHECK_ERROR(metricInfo[i], COMGETTER(Unit)(unit.asOutParam()));
    210210        CHECK_ERROR(metricInfo[i], COMGETTER(Description)(description.asOutParam()));
    211         RTPrintf("%-10ls %-20ls %-4ls %10d %10d %10u %10u %ls\n",
     211        RTPrintf("%-15ls %-40ls %-4ls %10d %10d %10u %10u %ls\n",
    212212            getObjectName(aVirtualBox, object).raw(), metricName.raw(), unit.raw(),
    213213            minimum, maximum, period, count, description.raw());
     
    315315                                                       ComSafeArrayAsOutParam(retData)) );
    316316
    317     RTPrintf("Object     Metric               Values\n"
    318              "---------- -------------------- --------------------------------------------\n");
     317    RTPrintf("Object          Metric                                   Values\n"
     318             "--------------- ---------------------------------------- --------------------------------------------\n");
    319319    for (unsigned i = 0; i < retNames.size(); i++)
    320320    {
    321321        Bstr metricUnit(retUnits[i]);
    322322        Bstr metricName(retNames[i]);
    323         RTPrintf("%-10ls %-20ls ", getObjectName(aVirtualBox, retObjects[i]).raw(), metricName.raw());
     323        RTPrintf("%-15ls %-40ls ", getObjectName(aVirtualBox, retObjects[i]).raw(), metricName.raw());
    324324        const char *separator = "";
    325325        for (unsigned j = 0; j < retLengths[i]; j++)
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