diff options
| author | Dante Niewenhuis <d.niewenhuis@hotmail.com> | 2024-11-26 11:09:21 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-26 11:09:21 +0100 |
| commit | ec73210b675fd90568c5193e6ae6ef82ce81be6c (patch) | |
| tree | 89b530b53898752f7800e5109548412b84fcd375 /opendc-compute | |
| parent | 698a64615d0eef8994fc1eaf0a3b71da194e1dcd (diff) | |
Streamlined the FlowNetwork for better performance (#273)
Diffstat (limited to 'opendc-compute')
2 files changed, 0 insertions, 4 deletions
diff --git a/opendc-compute/opendc-compute-simulator/src/main/kotlin/org/opendc/compute/simulator/host/SimHost.kt b/opendc-compute/opendc-compute-simulator/src/main/kotlin/org/opendc/compute/simulator/host/SimHost.kt index 32fcf277..0b9916ed 100644 --- a/opendc-compute/opendc-compute-simulator/src/main/kotlin/org/opendc/compute/simulator/host/SimHost.kt +++ b/opendc-compute/opendc-compute-simulator/src/main/kotlin/org/opendc/compute/simulator/host/SimHost.kt @@ -32,7 +32,6 @@ import org.opendc.compute.simulator.telemetry.GuestSystemStats import org.opendc.compute.simulator.telemetry.HostCpuStats import org.opendc.compute.simulator.telemetry.HostSystemStats import org.opendc.simulator.Multiplexer -import org.opendc.simulator.compute.cpu.CpuPowerModel import org.opendc.simulator.compute.machine.SimMachine import org.opendc.simulator.compute.models.MachineModel import org.opendc.simulator.compute.models.MemoryUnit @@ -61,7 +60,6 @@ public class SimHost( private val clock: InstantSource, private val graph: FlowGraph, private val machineModel: MachineModel, - private val powerModel: CpuPowerModel, private val powerMux: Multiplexer, ) : AutoCloseable { /** @@ -131,7 +129,6 @@ public class SimHost( SimMachine( this.graph, this.machineModel, - this.powerModel, this.powerMux, ) { cause -> hostState = if (cause != null) HostState.ERROR else HostState.DOWN diff --git a/opendc-compute/opendc-compute-simulator/src/main/kotlin/org/opendc/compute/simulator/provisioner/HostsProvisioningStep.kt b/opendc-compute/opendc-compute-simulator/src/main/kotlin/org/opendc/compute/simulator/provisioner/HostsProvisioningStep.kt index 8e7293c8..30b50c4b 100644 --- a/opendc-compute/opendc-compute-simulator/src/main/kotlin/org/opendc/compute/simulator/provisioner/HostsProvisioningStep.kt +++ b/opendc-compute/opendc-compute-simulator/src/main/kotlin/org/opendc/compute/simulator/provisioner/HostsProvisioningStep.kt @@ -77,7 +77,6 @@ public class HostsProvisioningStep internal constructor( ctx.dispatcher.timeSource, graph, hostSpec.model, - hostSpec.cpuPowerModel, powerMux, ) |
