diff options
| author | Dante Niewenhuis <d.niewenhuis@hotmail.com> | 2025-10-17 16:39:50 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-17 16:39:50 +0200 |
| commit | 59898b873eabc72719376854770c55e8d8efaa0f (patch) | |
| tree | ddd209df7c680f814ee67098431070dc7e0d6d3a /opendc-compute | |
| parent | 4181a4bd51b54a5905be1f46f74c1349776e35c2 (diff) | |
Updated FlowDistributor to use arrays for suppliers instead of maps (#378)
Diffstat (limited to 'opendc-compute')
| -rw-r--r-- | opendc-compute/opendc-compute-simulator/src/main/kotlin/org/opendc/compute/simulator/provisioner/HostsProvisioningStep.kt | 2 |
1 files changed, 2 insertions, 0 deletions
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 b5a8dbba..89c21fa6 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 @@ -73,6 +73,7 @@ public class HostsProvisioningStep internal constructor( engine, DistributionPolicy.MAX_MIN_FAIRNESS, cluster.hostSpecs.size, + 1, ) val carbonFragments = getCarbonFragments(cluster.powerSource.carbonTracePath) @@ -92,6 +93,7 @@ public class HostsProvisioningStep internal constructor( engine, DistributionPolicy.MAX_MIN_FAIRNESS, 2, + 1, ) FlowEdge(batteryDistributor, simPowerSource) |
