From e9bfee6e7e717acffc0e4ae512c416cf3ebddf05 Mon Sep 17 00:00:00 2001 From: Yzzz <39290771+lixiaobaivv@users.noreply.github.com> Date: Thu, 5 Sep 2024 22:02:41 +0800 Subject: [PATCH] [optimize] In a minor issue, the values of max and min are reversed (#2678) --- .../warehouse/store/history/influxdb/InfluxdbDataStorage.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/history/influxdb/InfluxdbDataStorage.java b/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/history/influxdb/InfluxdbDataStorage.java index 85a21f3f0f4..93601035a54 100644 --- a/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/history/influxdb/InfluxdbDataStorage.java +++ b/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/history/influxdb/InfluxdbDataStorage.java @@ -270,12 +270,12 @@ public Map> 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; }