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

gongchao 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 381ad50b1 [collector] fix: inverts the compareTo sort of 
MetricsCollect run queue (#1837)
381ad50b1 is described below

commit 381ad50b1db6cb62daa559d972425514f79610d4
Author: P.P <[email protected]>
AuthorDate: Wed Apr 24 23:54:31 2024 +0800

    [collector] fix: inverts the compareTo sort of MetricsCollect run queue 
(#1837)
    
    Co-authored-by: tomsun28 <[email protected]>
---
 .../java/org/apache/hertzbeat/collector/dispatch/MetricsCollect.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/collector/src/main/java/org/apache/hertzbeat/collector/dispatch/MetricsCollect.java
 
b/collector/src/main/java/org/apache/hertzbeat/collector/dispatch/MetricsCollect.java
index 6be9f859e..a32005499 100644
--- 
a/collector/src/main/java/org/apache/hertzbeat/collector/dispatch/MetricsCollect.java
+++ 
b/collector/src/main/java/org/apache/hertzbeat/collector/dispatch/MetricsCollect.java
@@ -406,6 +406,6 @@ public class MetricsCollect implements Runnable, 
Comparable<MetricsCollect> {
 
     @Override
     public int compareTo(MetricsCollect collect) {
-        return runPriority - collect.runPriority;
+        return collect.runPriority - this.runPriority;
     }
 }


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

Reply via email to