Fixed image server sorting, fixed improper imstat job counts
This commit is contained in:
parent
a9a404d1e1
commit
6d1bc63352
2 changed files with 3 additions and 3 deletions
|
@ -58,7 +58,7 @@ class ImageWorker extends BaseServiceWorker {
|
|||
async chooseServer(ideal) {
|
||||
if (ideal.length === 0) throw "No available servers";
|
||||
const sorted = ideal.sort((a, b) => {
|
||||
return b.load - a.load;
|
||||
return a.load - b.load;
|
||||
}).filter((e, i, array) => {
|
||||
return !(e.load < array[0].load);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue