From 3f05c61faeb94a2f1c920d87a6ca8bde34d551e0 Mon Sep 17 00:00:00 2001 From: Dante Niewenhuis Date: Thu, 5 Sep 2024 15:17:58 +0200 Subject: 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. --- .../src/test/kotlin/org/opendc/simulator/compute/SimMachineTest.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'opendc-simulator/opendc-simulator-compute/src/test') 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() -- cgit v1.2.3