summaryrefslogtreecommitdiff
path: root/simulator/opendc-runner-web/src
diff options
context:
space:
mode:
authorFabian Mastenbroek <mail.fabianm@gmail.com>2021-04-14 22:33:11 +0200
committerFabian Mastenbroek <mail.fabianm@gmail.com>2021-04-14 22:33:11 +0200
commit86b5df211938a8f9a391f143ccab5ccdf4a5d59e (patch)
tree4e27c85cf36609b2cf5881cfb696b05fbc65530a /simulator/opendc-runner-web/src
parent888a89efd3b639ce0ff48c35233ba95fed79bfc3 (diff)
exp: Fix incorrect filter scheduler weights
This change fixes an issue where incorrect scheduling weights were applied to the filter scheduler.
Diffstat (limited to 'simulator/opendc-runner-web/src')
-rw-r--r--simulator/opendc-runner-web/src/main/kotlin/org/opendc/runner/web/Main.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/simulator/opendc-runner-web/src/main/kotlin/org/opendc/runner/web/Main.kt b/simulator/opendc-runner-web/src/main/kotlin/org/opendc/runner/web/Main.kt
index 1ab67a61..a368dfee 100644
--- a/simulator/opendc-runner-web/src/main/kotlin/org/opendc/runner/web/Main.kt
+++ b/simulator/opendc-runner-web/src/main/kotlin/org/opendc/runner/web/Main.kt
@@ -234,7 +234,7 @@ public class RunnerCli : CliktCommand(name = "runner") {
)
"mem-inv" -> FilterScheduler(
filters = listOf(ComputeFilter(), ComputeCapabilitiesFilter()),
- weighers = listOf(MemoryWeigher() to -1.0)
+ weighers = listOf(MemoryWeigher() to 1.0)
)
"core-mem" -> FilterScheduler(
filters = listOf(ComputeFilter(), ComputeCapabilitiesFilter()),
@@ -242,7 +242,7 @@ public class RunnerCli : CliktCommand(name = "runner") {
)
"core-mem-inv" -> FilterScheduler(
filters = listOf(ComputeFilter(), ComputeCapabilitiesFilter()),
- weighers = listOf(CoreMemoryWeigher() to -1.0)
+ weighers = listOf(CoreMemoryWeigher() to 1.0)
)
"active-servers" -> FilterScheduler(
filters = listOf(ComputeFilter(), ComputeCapabilitiesFilter()),