summaryrefslogtreecommitdiff
path: root/opendc-stdlib/src
diff options
context:
space:
mode:
authorFabian Mastenbroek <mail.fabianm@gmail.com>2017-09-28 16:56:25 +0200
committerFabian Mastenbroek <mail.fabianm@gmail.com>2017-09-28 16:56:25 +0200
commit504598b320c689cca3d1bbf523a4dd82f69d7a61 (patch)
tree5058464bf8b8f4068240020c639bb1de6721a029 /opendc-stdlib/src
parentd6d9d37abf17071ff050e45ea37c693e659a4e98 (diff)
Add thread pool for experiment platform
Diffstat (limited to 'opendc-stdlib/src')
-rw-r--r--opendc-stdlib/src/main/kotlin/nl/atlarge/opendc/topology/machine/Machine.kt2
1 files changed, 1 insertions, 1 deletions
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<Machine.State>, Process<Machine> {
val interval: Duration = 10
val cpus = outgoingEdges.destinations<Cpu>("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))