Changeset 10870 in vbox
- Timestamp:
- Jul 24, 2008 7:32:11 PM (16 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/Performance.h
r10868 r10870 121 121 const char *getUnit() { return "%"; }; 122 122 unsigned long getMinValue() { return 0; }; 123 unsigned long getMaxValue() { return 100000000; };123 unsigned long getMaxValue() { return PM_CPU_LOAD_MULTIPLIER; }; 124 124 125 125 protected: … … 184 184 const char *getUnit() { return "%"; }; 185 185 unsigned long getMinValue() { return 0; }; 186 unsigned long getMaxValue() { return 100000000; };186 unsigned long getMaxValue() { return PM_CPU_LOAD_MULTIPLIER; }; 187 187 protected: 188 188 RTPROCESS mProcess; -
trunk/src/VBox/Main/testcase/tstAPI.cpp
r10868 r10870 1057 1057 Bstr metricUnit(metricUnitBSTR); 1058 1058 Bstr metricName(retNames[i]); 1059 printf("obj(%p) %ls", anObject[0], metricName.raw()); 1059 LONG minVal, maxVal; 1060 CHECK_RC_BREAK (metricInfo[0]->COMGETTER(MinimumValue) (&minVal)); 1061 CHECK_RC_BREAK (metricInfo[0]->COMGETTER(MaximumValue) (&maxVal)); 1062 printf("obj(%p) %ls (min=%lu max=%lu)", anObject[0], metricName.raw(), minVal, maxVal); 1060 1063 for (unsigned j = 0; j < retLengths[i]; j++) 1061 1064 {
Note:
See TracChangeset
for help on using the changeset viewer.