diff options
| author | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2017-09-28 16:56:25 +0200 |
|---|---|---|
| committer | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2017-09-28 16:56:25 +0200 |
| commit | 504598b320c689cca3d1bbf523a4dd82f69d7a61 (patch) | |
| tree | 5058464bf8b8f4068240020c639bb1de6721a029 /opendc-stdlib/src | |
| parent | d6d9d37abf17071ff050e45ea37c693e659a4e98 (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.kt | 2 |
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)) |
