Skip to content

Commit d09c6b3

Browse files
committed
Fix ClusterODM best node sorting routine
1 parent 1e0e696 commit d09c6b3

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

libs/nodes.js

+2
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,9 @@ module.exports = {
166166
else if (a.slots > b.slots) return -1;
167167
else if (a.slots < b.slots) return 1;
168168
else if (a.queueCount < b.queueCount) return -1;
169+
else if (a.queueCount > b.queueCount) return 1;
169170
else if (a.node.turn < b.node.turn) return -1;
171+
else if (a.node.turn > b.node.turn) return 1;
170172
else return 1;
171173
});
172174

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ClusterODM",
3-
"version": "1.4.5",
3+
"version": "1.4.6",
44
"description": "",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)