summaryrefslogtreecommitdiff
path: root/opendc-experiments
diff options
context:
space:
mode:
authorFabian Mastenbroek <mail.fabianm@gmail.com>2021-08-18 12:13:07 +0200
committerFabian Mastenbroek <mail.fabianm@gmail.com>2021-08-24 11:20:19 +0200
commit484848e2e0bfdaf46f10112e358d3475dbf8e725 (patch)
treee790b94a66f076ca9091e003af777104633520f6 /opendc-experiments
parent31a1f298c71cd3203fdcd57bd39ba8813009dd5b (diff)
fix(simulator): Record overcommit only after deadline
This change fixes an issue with the simulator where it would record overcomitted work if the output was updated before the deadline was reached.
Diffstat (limited to 'opendc-experiments')
-rw-r--r--opendc-experiments/opendc-experiments-capelin/src/test/kotlin/org/opendc/experiments/capelin/CapelinIntegrationTest.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/opendc-experiments/opendc-experiments-capelin/src/test/kotlin/org/opendc/experiments/capelin/CapelinIntegrationTest.kt b/opendc-experiments/opendc-experiments-capelin/src/test/kotlin/org/opendc/experiments/capelin/CapelinIntegrationTest.kt
index 00ab9190..3dca1e09 100644
--- a/opendc-experiments/opendc-experiments-capelin/src/test/kotlin/org/opendc/experiments/capelin/CapelinIntegrationTest.kt
+++ b/opendc-experiments/opendc-experiments-capelin/src/test/kotlin/org/opendc/experiments/capelin/CapelinIntegrationTest.kt
@@ -116,7 +116,7 @@ class CapelinIntegrationTest {
{ assertEquals(0, monitorResults.queuedVms, "No VM should not be in the queue") },
{ assertEquals(155252275350, monitor.totalRequestedBurst) { "Incorrect requested burst" } },
{ assertEquals(155086837649, monitor.totalGrantedBurst) { "Incorrect granted burst" } },
- { assertEquals(165488283, monitor.totalOvercommissionedBurst) { "Incorrect overcommitted burst" } },
+ { assertEquals(155088144, monitor.totalOvercommissionedBurst) { "Incorrect overcommitted burst" } },
{ assertEquals(0, monitor.totalInterferedBurst) { "Incorrect interfered burst" } }
)
}