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