summaryrefslogtreecommitdiff
path: root/simulator/opendc-runner-web
diff options
context:
space:
mode:
authorFabian Mastenbroek <mail.fabianm@gmail.com>2020-10-05 12:57:31 +0200
committerFabian Mastenbroek <mail.fabianm@gmail.com>2020-10-05 12:57:31 +0200
commit374960cd15a2893a124c42975167f8bf6e45e868 (patch)
tree207f2deb8e3782f1a52e6b32290e274c6ff7ba1f /simulator/opendc-runner-web
parentfeda2ade4069f0582feed0873c9a0d0a2e5401f6 (diff)
Address compilation warnings
Diffstat (limited to 'simulator/opendc-runner-web')
-rw-r--r--simulator/opendc-runner-web/src/main/kotlin/org/opendc/runner/web/Main.kt3
-rw-r--r--simulator/opendc-runner-web/src/main/kotlin/org/opendc/runner/web/TopologyParser.kt1
2 files changed, 1 insertions, 3 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 ca500770..26577ef2 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
@@ -277,8 +277,7 @@ public class RunnerCli : CliktCommand(name = "runner") {
trace,
scheduler,
chan,
- monitor,
- emptyMap()
+ monitor
)
logger.debug("SUBMIT=${scheduler.submittedVms}")
diff --git a/simulator/opendc-runner-web/src/main/kotlin/org/opendc/runner/web/TopologyParser.kt b/simulator/opendc-runner-web/src/main/kotlin/org/opendc/runner/web/TopologyParser.kt
index 244f2a3d..5e483271 100644
--- a/simulator/opendc-runner-web/src/main/kotlin/org/opendc/runner/web/TopologyParser.kt
+++ b/simulator/opendc-runner-web/src/main/kotlin/org/opendc/runner/web/TopologyParser.kt
@@ -60,7 +60,6 @@ public class TopologyParser(private val collection: MongoCollection<Document>, p
val random = Random(0)
for (machine in fetchMachines(id)) {
- val machineId = machine.getString("_id")
val clusterId = machine.getString("rack_id")
val position = machine.getInteger("position")