Skip to content

Commit

Permalink
[optimize] In a minor issue, the values of max and min are reversed (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
lixiaobaivv authored Sep 5, 2024
1 parent b8a2e86 commit e9bfee6
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 e9bfee6

Please sign in to comment.