diff options
| author | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2021-06-10 17:32:43 +0200 |
|---|---|---|
| committer | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2021-06-11 17:05:10 +0200 |
| commit | 1768292251957da5ce6411ecc7d2dffebf8709c8 (patch) | |
| tree | e79f01046233efbbc2c8ec5432e23789e7ca0346 /opendc-experiments/opendc-experiments-tf20/src | |
| parent | f0c0c6d45165ad0ce398ec7300b11bf77c7ae5a6 (diff) | |
simulator: Integrate power subsystem with compute subsystem
This change integrates the power subsystem of the simulator with the
compute subsystem by exposing a new field on a SimBareMetalMachine, psu,
which provides access to the machine's PSU, which in turn can be
connected to a SimPowerOutlet.
Diffstat (limited to 'opendc-experiments/opendc-experiments-tf20/src')
| -rw-r--r-- | opendc-experiments/opendc-experiments-tf20/src/main/kotlin/org/opendc/experiments/tf20/core/SimTFDevice.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/opendc-experiments/opendc-experiments-tf20/src/main/kotlin/org/opendc/experiments/tf20/core/SimTFDevice.kt b/opendc-experiments/opendc-experiments-tf20/src/main/kotlin/org/opendc/experiments/tf20/core/SimTFDevice.kt index 001547ef..92e7080a 100644 --- a/opendc-experiments/opendc-experiments-tf20/src/main/kotlin/org/opendc/experiments/tf20/core/SimTFDevice.kt +++ b/opendc-experiments/opendc-experiments-tf20/src/main/kotlin/org/opendc/experiments/tf20/core/SimTFDevice.kt @@ -153,7 +153,7 @@ public class SimTFDevice( } SimResourceEvent.Run -> { _usage.record(ctx.speed) - _power.record(machine.powerDraw) + _power.record(machine.psu.powerDraw) } else -> {} } |
