- Timestamp:
- Mar 20, 2009 12:54:04 PM (16 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageInfo.cpp
r18072 r18113 1652 1652 1653 1653 rc = guest->GetStatistic(0, GuestStatisticType_SampleNumber, &statVal); 1654 if (details == VMINFO_MACHINEREADABLE) 1655 RTPrintf("StatGuestSample=%d\n", statVal); 1656 else 1657 RTPrintf("Guest statistics for sample %d:\n\n", statVal); 1654 if (SUCCEEDED(rc)) 1655 { 1656 if (details == VMINFO_MACHINEREADABLE) 1657 RTPrintf("StatGuestSample=%d\n", statVal); 1658 else 1659 RTPrintf("Guest statistics for sample %d:\n\n", statVal); 1660 } 1658 1661 1659 1662 rc = guest->GetStatistic(0, GuestStatisticType_CPULoad_Idle, &statVal); -
trunk/src/VBox/Main/GuestImpl.cpp
r16125 r18113 292 292 CheckComArgOutPointerValid(aStatVal); 293 293 294 /* not available or not yet reported? */ 295 CheckComArgExpr(aStatistic, mCurrentGuestStat[aStatistic] != GUEST_STAT_INVALID); 294 /* Not available or not yet reported? In that case, just return with a proper error 295 * but don't use setError(). */ 296 if (mCurrentGuestStat[aStatistic] == GUEST_STAT_INVALID) 297 return E_INVALIDARG; 296 298 297 299 *aStatVal = mCurrentGuestStat[aStatistic];
Note:
See TracChangeset
for help on using the changeset viewer.