summaryrefslogtreecommitdiff
path: root/opendc-simulator/opendc-simulator-compute/src/test
diff options
context:
space:
mode:
authorDante Niewenhuis <d.niewenhuis@hotmail.com>2024-09-05 15:17:58 +0200
committerGitHub <noreply@github.com>2024-09-05 15:17:58 +0200
commit3f05c61faeb94a2f1c920d87a6ca8bde34d551e0 (patch)
treee699b6293c1ef275213999743ae1b64a15b0d8f6 /opendc-simulator/opendc-simulator-compute/src/test
parentfa6e850b11bf09947c4afc03f4af18f488436bbd (diff)
Sim trace update (#249)
* Started on reimplementing the SimTrace implementation * updated trace format. Fragments now do not have a deadline, but a duration. The Fragments are executed in order.
Diffstat (limited to 'opendc-simulator/opendc-simulator-compute/src/test')
-rw-r--r--opendc-simulator/opendc-simulator-compute/src/test/kotlin/org/opendc/simulator/compute/SimMachineTest.kt6
1 files changed, 3 insertions, 3 deletions
diff --git a/opendc-simulator/opendc-simulator-compute/src/test/kotlin/org/opendc/simulator/compute/SimMachineTest.kt b/opendc-simulator/opendc-simulator-compute/src/test/kotlin/org/opendc/simulator/compute/SimMachineTest.kt
index fc242e8c..8bb856c5 100644
--- a/opendc-simulator/opendc-simulator-compute/src/test/kotlin/org/opendc/simulator/compute/SimMachineTest.kt
+++ b/opendc-simulator/opendc-simulator-compute/src/test/kotlin/org/opendc/simulator/compute/SimMachineTest.kt
@@ -95,9 +95,9 @@ class SimMachineTest {
val random = ThreadLocalRandom.current()
val builder = SimTrace.builder()
repeat(1000000) {
- val timestamp = it.toLong() * 1000
- val deadline = timestamp + 1000
- builder.add(deadline, random.nextDouble(0.0, 4500.0), 1)
+// val timestamp = it.toLong() * 1000
+// val deadline = timestamp + 1000
+ builder.add(1000, random.nextDouble(0.0, 4500.0), 1)
}
val trace = builder.build()