mirror of
https://github.com/ctripcorp/zeus.git
synced 2024-11-10 17:13:46 +08:00
fix group priority bug
This commit is contained in:
parent
f7c3f12fb6
commit
480dd64e63
1 changed files with 1 additions and 1 deletions
|
@ -331,7 +331,7 @@ public class TaskExecutorImpl implements TaskExecutor {
|
|||
List<Group> list = vsGroups.get(vsId);
|
||||
Collections.sort(list, new Comparator<Group>() {
|
||||
public int compare(Group group0, Group group1) {
|
||||
if (vsGroupPriority.get("VS" + vs + "_" + group1.getId()) == vsGroupPriority.get("VS" + vs + "_" + group0.getId())) {
|
||||
if (vsGroupPriority.get("VS" + vs + "_" + group1.getId()).equals(vsGroupPriority.get("VS" + vs + "_" + group0.getId()))) {
|
||||
return (int) (group1.getId() - group0.getId());
|
||||
}
|
||||
return vsGroupPriority.get("VS" + vs + "_" + group1.getId()) - vsGroupPriority.get("VS" + vs + "_" + group0.getId());
|
||||
|
|
Loading…
Reference in a new issue