VirtualBox

Changeset 4651 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Sep 10, 2007 9:11:52 AM (17 years ago)
Author:
vboxsync
Message:

cleanup

File:
1 edited

Legend:

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

    r4650 r4651  
    15491549        &&  (details == VMINFO_STATISTICS || details == VMINFO_FULL))
    15501550    {
    1551         ComPtr <IGuest> Guest;
     1551        ComPtr <IGuest> guest;
    15521552        ULONG statVal;
    15531553
    1554         rc = console->COMGETTER(Guest)(Guest.asOutParam());
     1554        rc = console->COMGETTER(Guest)(guest.asOutParam());
    15551555        if (SUCCEEDED(rc))
    15561556        {
    1557             rc = Guest->GetStatistic(0, GuestStatisticType_CPULoad_Idle, &statVal);
     1557            rc = guest->GetStatistic(0, GuestStatisticType_CPULoad_Idle, &statVal);
    15581558            if (SUCCEEDED(rc))
    15591559                RTPrintf("CPU%d: CPU Load Idle          %-3d%%\n", 0, statVal);
    15601560
    1561             rc = Guest->GetStatistic(0, GuestStatisticType_CPULoad_Kernel, &statVal);
     1561            rc = guest->GetStatistic(0, GuestStatisticType_CPULoad_Kernel, &statVal);
    15621562            if (SUCCEEDED(rc))
    15631563                RTPrintf("CPU%d: CPU Load Kernel        %-3d%%\n", 0, statVal);
    15641564
    1565             rc = Guest->GetStatistic(0, GuestStatisticType_CPULoad_User, &statVal);
     1565            rc = guest->GetStatistic(0, GuestStatisticType_CPULoad_User, &statVal);
    15661566            if (SUCCEEDED(rc))
    15671567                RTPrintf("CPU%d: CPU Load User          %-3d%%\n", 0, statVal);
    15681568
    1569             rc = Guest->GetStatistic(0, GuestStatisticType_Threads, &statVal);
     1569            rc = guest->GetStatistic(0, GuestStatisticType_Threads, &statVal);
    15701570            if (SUCCEEDED(rc))
    15711571                RTPrintf("CPU%d: Threads                %d%%\n", 0, statVal);
    15721572
    1573             rc = Guest->GetStatistic(0, GuestStatisticType_Processes, &statVal);
     1573            rc = guest->GetStatistic(0, GuestStatisticType_Processes, &statVal);
    15741574            if (SUCCEEDED(rc))
    15751575                RTPrintf("CPU%d: Processes              %d%%\n", 0, statVal);
    15761576
    1577             rc = Guest->GetStatistic(0, GuestStatisticType_Handles, &statVal);
     1577            rc = guest->GetStatistic(0, GuestStatisticType_Handles, &statVal);
    15781578            if (SUCCEEDED(rc))
    15791579                RTPrintf("CPU%d: Handles                %d%%\n", 0, statVal);
    15801580
    1581             rc = Guest->GetStatistic(0, GuestStatisticType_MemoryLoad, &statVal);
     1581            rc = guest->GetStatistic(0, GuestStatisticType_MemoryLoad, &statVal);
    15821582            if (SUCCEEDED(rc))
    15831583                RTPrintf("CPU%d: Memory Load            %d%%\n", 0, statVal);
    15841584
    1585             rc = Guest->GetStatistic(0, GuestStatisticType_PhysMemTotal, &statVal);
     1585            rc = guest->GetStatistic(0, GuestStatisticType_PhysMemTotal, &statVal);
    15861586            if (SUCCEEDED(rc))
    15871587                RTPrintf("CPU%d: Total physical memory  %-4d MB\n", 0, statVal);
    15881588
    1589             rc = Guest->GetStatistic(0, GuestStatisticType_PhysMemAvailable, &statVal);
     1589            rc = guest->GetStatistic(0, GuestStatisticType_PhysMemAvailable, &statVal);
    15901590            if (SUCCEEDED(rc))
    15911591                RTPrintf("CPU%d: Free physical memory   %-4d MB\n", 0, statVal);
    15921592
    1593             rc = Guest->GetStatistic(0, GuestStatisticType_PhysMemBalloon, &statVal);
     1593            rc = guest->GetStatistic(0, GuestStatisticType_PhysMemBalloon, &statVal);
    15941594            if (SUCCEEDED(rc))
    15951595                RTPrintf("CPU%d: Memory balloon size    %-4d MB\n", 0, statVal);
    15961596
    1597             rc = Guest->GetStatistic(0, GuestStatisticType_MemCommitTotal, &statVal);
     1597            rc = guest->GetStatistic(0, GuestStatisticType_MemCommitTotal, &statVal);
    15981598            if (SUCCEEDED(rc))
    15991599                RTPrintf("CPU%d: Committed memory       %-4d MB\n", 0, statVal);
    16001600
    1601             rc = Guest->GetStatistic(0, GuestStatisticType_MemKernelTotal, &statVal);
     1601            rc = guest->GetStatistic(0, GuestStatisticType_MemKernelTotal, &statVal);
    16021602            if (SUCCEEDED(rc))
    16031603                RTPrintf("CPU%d: Total kernel memory    %-4d MB\n", 0, statVal);
    16041604
    1605             rc = Guest->GetStatistic(0, GuestStatisticType_MemKernelPaged, &statVal);
     1605            rc = guest->GetStatistic(0, GuestStatisticType_MemKernelPaged, &statVal);
    16061606            if (SUCCEEDED(rc))
    16071607                RTPrintf("CPU%d: Paged kernel memory    %-4d MB\n", 0, statVal);
    16081608
    1609             rc = Guest->GetStatistic(0, GuestStatisticType_MemKernelNonpaged, &statVal);
     1609            rc = guest->GetStatistic(0, GuestStatisticType_MemKernelNonpaged, &statVal);
    16101610            if (SUCCEEDED(rc))
    16111611                RTPrintf("CPU%d: Nonpaged kernel memory %-4d MB\n", 0, statVal);
    16121612
    1613             rc = Guest->GetStatistic(0, GuestStatisticType_MemSystemCache, &statVal);
     1613            rc = guest->GetStatistic(0, GuestStatisticType_MemSystemCache, &statVal);
    16141614            if (SUCCEEDED(rc))
    16151615                RTPrintf("CPU%d: System cache size      %-4d MB\n", 0, statVal);
    16161616
    1617             rc = Guest->GetStatistic(0, GuestStatisticType_PageFileSize, &statVal);
     1617            rc = guest->GetStatistic(0, GuestStatisticType_PageFileSize, &statVal);
    16181618            if (SUCCEEDED(rc))
    16191619                RTPrintf("CPU%d: Page file size         %-4d MB\n", 0, statVal);
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