summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorgios Andreadis <info@gandreadis.com>2020-03-11 13:52:35 +0100
committerGeorgios Andreadis <info@gandreadis.com>2020-03-11 13:52:35 +0100
commit3c205b26aff8158492cc116b2f7948b7113e7288 (patch)
tree08ca24b1b5b4c99314c96d2816b88ab01d3a18ad
parentdbf5b19b20e9f9eba770f1eacf0b44a617feb2a3 (diff)
Fix remainder/burst granted issue
-rw-r--r--opendc/opendc-compute/src/main/kotlin/com/atlarge/opendc/compute/virt/driver/hypervisor/HypervisorVirtDriver.kt2
1 files changed, 1 insertions, 1 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 f63a5484..43d17d8e 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
@@ -193,7 +193,7 @@ class HypervisorVirtDriver(
monitor.onSliceFinish(
end,
burst.sum(),
- remainder.sum(),
+ burst.sum() - remainder.sum(),
vms.size,
hostContext.server
)