1
This commit is contained in:
parent
c388dbf87e
commit
14a5149668
@ -203,12 +203,16 @@ GSNode* GSMgr::AllocNode(int channel)
|
||||
GSNode* n2 = sorted_nodes->at(sorted_nodes->size() - 2);
|
||||
if (n1->online_num < 100 && n2->online_num < 100) {
|
||||
if (n1->instance_id < n2->instance_id) {
|
||||
if (n1->servicing) {
|
||||
return n1;
|
||||
}
|
||||
} else {
|
||||
if (n2->servicing) {
|
||||
return n2;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
int idx = rand() % rnd;
|
||||
while (idx >= 0) {
|
||||
if (sorted_nodes->at(idx)->servicing) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user