We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4eda2f commit e9abcc4Copy full SHA for e9abcc4
IntelPresentMon/PresentMonMiddleware/ConcreteMiddleware.cpp
@@ -1275,15 +1275,24 @@ static void ReportMetrics(
1275
{
1276
double max = inData[0];
1277
for (size_t i = 1; i < inData.size(); ++i) {
1278
- max = std::max(max, inData[i]);
+ if (invert) {
1279
+ max = std::min(max, inData[i]);
1280
+ } else {
1281
+ max = std::max(max, inData[i]);
1282
+ }
1283
}
1284
return max;
1285
1286
case PM_STAT_MIN:
1287
1288
double min = inData[0];
1289
- min = std::min(min, inData[i]);
1290
1291
+ min = std::max(min, inData[i]);
1292
1293
+ else {
1294
+ min = std::min(min, inData[i]);
1295
1296
1297
return min;
1298
0 commit comments