parent
a12bae590d
commit
268ea2f0d0
|
|
@ -78,7 +78,7 @@ public class ApplicationMetricEsUIDAO extends EsDAO implements IApplicationMetri
|
|||
applicationThroughputList.add(applicationThroughput);
|
||||
});
|
||||
|
||||
applicationThroughputList.sort((first, second) -> first.getCpm() > second.getCpm() ? -1 : 1);
|
||||
applicationThroughputList.sort((first, second) -> Integer.compare(second.getCpm(), first.getCpm()));
|
||||
|
||||
if (applicationThroughputList.size() <= topN) {
|
||||
return applicationThroughputList;
|
||||
|
|
|
|||
|
|
@ -84,7 +84,7 @@ public class InstanceMetricEsUIDAO extends EsDAO implements IInstanceMetricUIDAO
|
|||
appServerInfoList.add(appServerInfo);
|
||||
});
|
||||
|
||||
appServerInfoList.sort((first, second) -> first.getCpm() > second.getCpm() ? -1 : 1);
|
||||
appServerInfoList.sort((first, second) -> Integer.compare(second.getCpm(), first.getCpm()));
|
||||
if (appServerInfoList.size() <= topN) {
|
||||
return appServerInfoList;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue