summaryrefslogtreecommitdiff
path: root/src/VBox/Main/testcase/tstAPI.cpp
diff options
context:
space:
mode:
authorvboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f>2008-07-24 19:32:11 +0000
committervboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f>2008-07-24 19:32:11 +0000
commitcc67f5dbc4348c5de4108b12d38e4e610299f756 (patch)
treed35fb160839395a2e20cae385b2d499bbe32af7f /src/VBox/Main/testcase/tstAPI.cpp
parent2436b7ce75e9b49a2c444a188817dadb8c804d83 (diff)
downloadVirtualBox-svn-cc67f5dbc4348c5de4108b12d38e4e610299f756.tar.gz
PerfAPI: Min/max value fix for CPU Load counters.
git-svn-id: https://www.virtualbox.org/svn/vbox/trunk@10870 cfe28804-0f27-0410-a406-dd0f0b0b656f
Diffstat (limited to 'src/VBox/Main/testcase/tstAPI.cpp')
-rw-r--r--src/VBox/Main/testcase/tstAPI.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/VBox/Main/testcase/tstAPI.cpp b/src/VBox/Main/testcase/tstAPI.cpp
index 9f8394216fd..3f1b5de3ce8 100644
--- a/src/VBox/Main/testcase/tstAPI.cpp
+++ b/src/VBox/Main/testcase/tstAPI.cpp
@@ -1056,7 +1056,10 @@ void queryMetrics (ComPtr <IPerformanceCollector> collector,
CHECK_RC_BREAK (metricInfo[0]->COMGETTER(Unit) (&metricUnitBSTR));
Bstr metricUnit(metricUnitBSTR);
Bstr metricName(retNames[i]);
- printf("obj(%p) %ls", anObject[0], metricName.raw());
+ LONG minVal, maxVal;
+ CHECK_RC_BREAK (metricInfo[0]->COMGETTER(MinimumValue) (&minVal));
+ CHECK_RC_BREAK (metricInfo[0]->COMGETTER(MaximumValue) (&maxVal));
+ printf("obj(%p) %ls (min=%lu max=%lu)", anObject[0], metricName.raw(), minVal, maxVal);
for (unsigned j = 0; j < retLengths[i]; j++)
{
printf(", %d %ls", retData[retIndices[i] + j] / (strcmp((const char *)metricUnit.raw(), "%")?1:1000), metricUnit.raw());