summaryrefslogtreecommitdiff
path: root/opendc-compute/opendc-compute-service/src
diff options
context:
space:
mode:
authorFabian Mastenbroek <mail.fabianm@gmail.com>2021-05-05 23:14:56 +0200
committerFabian Mastenbroek <mail.fabianm@gmail.com>2021-05-18 15:21:29 +0200
commitcc9310efad6177909ff2f7415384d7c393383106 (patch)
tree5e94f0443cdf1c63ec77248aaf520974e5bfd7d0 /opendc-compute/opendc-compute-service/src
parentef3868ec729f7ce3f5976d4f9a0c8b95098d9857 (diff)
chore: Address deprecations due to Kotlin 1.5
This change addresses the deprecations that were caused by the migration to Kotlin 1.5.
Diffstat (limited to 'opendc-compute/opendc-compute-service/src')
-rw-r--r--opendc-compute/opendc-compute-service/src/main/kotlin/org/opendc/compute/service/scheduler/FilterScheduler.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/opendc-compute/opendc-compute-service/src/main/kotlin/org/opendc/compute/service/scheduler/FilterScheduler.kt b/opendc-compute/opendc-compute-service/src/main/kotlin/org/opendc/compute/service/scheduler/FilterScheduler.kt
index 0fd5b2a4..1fe90454 100644
--- a/opendc-compute/opendc-compute-service/src/main/kotlin/org/opendc/compute/service/scheduler/FilterScheduler.kt
+++ b/opendc-compute/opendc-compute-service/src/main/kotlin/org/opendc/compute/service/scheduler/FilterScheduler.kt
@@ -59,7 +59,7 @@ public class FilterScheduler(private val filters: List<HostFilter>, private val
true
}
.sortedByDescending { host ->
- weighers.sumByDouble { (weigher, factor) -> weigher.getWeight(host, server) * factor }
+ weighers.sumOf { (weigher, factor) -> weigher.getWeight(host, server) * factor }
}
.firstOrNull()
}