This is an automated email from the ASF dual-hosted git repository.

zhaoqingran pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hertzbeat.git


The following commit(s) were added to refs/heads/master by this push:
     new e9bfee6e7 [optimize] In a minor issue, the values of max and min are 
reversed (#2678)
e9bfee6e7 is described below

commit e9bfee6e7e717acffc0e4ae512c416cf3ebddf05
Author: Yzzz <[email protected]>
AuthorDate: Thu Sep 5 22:02:41 2024 +0800

    [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 85a21f3f0..93601035a 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 class InfluxdbDataStorage extends 
AbstractHistoryDataStorage {
                                 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;
                             }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to