From 504598b320c689cca3d1bbf523a4dd82f69d7a61 Mon Sep 17 00:00:00 2001 From: Fabian Mastenbroek Date: Thu, 28 Sep 2017 16:56:25 +0200 Subject: Add thread pool for experiment platform --- .../src/main/kotlin/nl/atlarge/opendc/topology/machine/Machine.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'opendc-stdlib/src') diff --git a/opendc-stdlib/src/main/kotlin/nl/atlarge/opendc/topology/machine/Machine.kt b/opendc-stdlib/src/main/kotlin/nl/atlarge/opendc/topology/machine/Machine.kt index 4338ae04..b1d881a1 100644 --- a/opendc-stdlib/src/main/kotlin/nl/atlarge/opendc/topology/machine/Machine.kt +++ b/opendc-stdlib/src/main/kotlin/nl/atlarge/opendc/topology/machine/Machine.kt @@ -79,7 +79,7 @@ open class Machine : Entity, Process { val interval: Duration = 10 val cpus = outgoingEdges.destinations("cpu") - val speed = cpus.fold(0, { acc, cpu -> acc + cpu.clockRate * cpu.cores }) / 10 + val speed = cpus.fold(0, { acc, cpu -> acc + cpu.clockRate * cpu.cores }) var task: Task = receiveTask() update(State(Status.RUNNING, task, load = 1.0, memory = state.memory + 50, temperature = 30.0)) -- cgit v1.2.3