mirror of
https://github.com/apache/rocketmq-dashboard.git
synced 2025-09-10 11:40:01 +08:00
fix GroupConsumeInfo#compareTo (#326)
This commit is contained in:
@@ -71,10 +71,9 @@ public class GroupConsumeInfo implements Comparable<GroupConsumeInfo> {
|
||||
@Override
|
||||
public int compareTo(GroupConsumeInfo o) {
|
||||
if (this.count != o.count) {
|
||||
return o.count - this.count;
|
||||
return Integer.compare(o.count, this.count);
|
||||
}
|
||||
|
||||
return (int) (o.diffTotal - diffTotal);
|
||||
return Long.compare(o.diffTotal, this.diffTotal);
|
||||
}
|
||||
|
||||
public int getConsumeTps() {
|
||||
|
Reference in New Issue
Block a user