summaryrefslogtreecommitdiff
path: root/opendc/opendc-compute/src
diff options
context:
space:
mode:
authorFabian Mastenbroek <mail.fabianm@gmail.com>2020-03-11 14:09:16 +0100
committerFabian Mastenbroek <mail.fabianm@gmail.com>2020-03-11 14:09:16 +0100
commit0655127dcd945289f045d8e04304e6a050e2a2f9 (patch)
tree186b056f4db6cb77c302e3e1856458c43fb132e7 /opendc/opendc-compute/src
parent1ccfcb28bb91c9dc456a1f324a0be6300086eb28 (diff)
parente24748a93b698efe47c440676e28d0997398433f (diff)
Merge branch '2.x-read-internal-traces' into '2.x'
Write parsers for internal (proprietary) traces and environment files See merge request opendc/opendc-simulator!37
Diffstat (limited to 'opendc/opendc-compute/src')
-rw-r--r--opendc/opendc-compute/src/main/kotlin/com/atlarge/opendc/compute/virt/driver/hypervisor/HypervisorVirtDriver.kt17
1 files changed, 8 insertions, 9 deletions
diff --git a/opendc/opendc-compute/src/main/kotlin/com/atlarge/opendc/compute/virt/driver/hypervisor/HypervisorVirtDriver.kt b/opendc/opendc-compute/src/main/kotlin/com/atlarge/opendc/compute/virt/driver/hypervisor/HypervisorVirtDriver.kt
index 05e1ab90..f50d694a 100644
--- a/opendc/opendc-compute/src/main/kotlin/com/atlarge/opendc/compute/virt/driver/hypervisor/HypervisorVirtDriver.kt
+++ b/opendc/opendc-compute/src/main/kotlin/com/atlarge/opendc/compute/virt/driver/hypervisor/HypervisorVirtDriver.kt
@@ -190,15 +190,14 @@ class HypervisorVirtDriver(
}
}
- for (i in burst.indices) {
- monitor.onSliceFinish(
- end,
- burst[i],
- remainder[i],
- vms.size,
- hostContext.server
- )
- }
+ val totalBurst = burst.sum()
+ monitor.onSliceFinish(
+ end,
+ totalBurst,
+ totalBurst - remainder.sum(),
+ vms.size,
+ hostContext.server
+ )
}
this.call = call
call.invokeOnCompletion { this.call = null }