Skip to content

Commit

Permalink
[bugfix] Fixed influxdb the issue that max and min were displayed in …
Browse files Browse the repository at this point in the history
…the performance metrics page, and the minimum value was taken for max and the maximum value for min
  • Loading branch information
lixiaobaivv committed Sep 5, 2024
1 parent 4080f5f commit 9270888
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -270,12 +270,12 @@ public Map<String, List<Value>> getHistoryIntervalMetricData(Long monitorId, Str
continue;
}
if (value.get(3) != null) {
valueBuilder.min(this.parseDoubleValue(value.get(3).toString()));
valueBuilder.max(this.parseDoubleValue(value.get(3).toString()));
} else {
continue;
}
if (value.get(4) != null) {
valueBuilder.max(this.parseDoubleValue(value.get(4).toString()));
valueBuilder.min(this.parseDoubleValue(value.get(4).toString()));
} else {
continue;
}
Expand Down

0 comments on commit 9270888

Please sign in to comment.