We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 36d6d20 commit e5aede7Copy full SHA for e5aede7
common/lib/plugins/limitless/limitless_query_helper.ts
@@ -45,7 +45,7 @@ export class LimitlessQueryHelper {
45
const hostName: string = row["router_endpoint"];
46
const cpu: number = row["load"];
47
48
- let weight: number = Math.round(10 - cpu * 10);
+ let weight: number = 10 - Math.floor(cpu * 10);
49
50
if (weight < 1 || weight > 10) {
51
weight = 1; // default to 1
0 commit comments