summaryrefslogtreecommitdiff
path: root/opendc-compute
diff options
context:
space:
mode:
authorFabian Mastenbroek <mail.fabianm@gmail.com>2021-08-25 20:46:36 +0200
committerFabian Mastenbroek <mail.fabianm@gmail.com>2021-08-25 20:50:43 +0200
commitb0f6402f60ddbba1aad7e198fe6757792337f4d4 (patch)
tree276eddd32297cf370ca37504ac0ef770f55ec4fe /opendc-compute
parent8f58ae2b28518c6a2ed2fe3657984f417b3d3ddb (diff)
refactor(compute): Measure power draw without PSU overhead
This change updates the SimHost implementation to measure the power draw of the machine without PSU overhead to make the results more realistic.
Diffstat (limited to 'opendc-compute')
-rw-r--r--opendc-compute/opendc-compute-simulator/src/main/kotlin/org/opendc/compute/simulator/SimHost.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/opendc-compute/opendc-compute-simulator/src/main/kotlin/org/opendc/compute/simulator/SimHost.kt b/opendc-compute/opendc-compute-simulator/src/main/kotlin/org/opendc/compute/simulator/SimHost.kt
index dcc525cb..20e5a9db 100644
--- a/opendc-compute/opendc-compute-simulator/src/main/kotlin/org/opendc/compute/simulator/SimHost.kt
+++ b/opendc-compute/opendc-compute-simulator/src/main/kotlin/org/opendc/compute/simulator/SimHost.kt
@@ -114,7 +114,7 @@ public class SimHost(
_interferedWork.add(interferedWork)
_cpuDemand.record(cpuDemand)
_cpuUsage.record(cpuUsage)
- _powerUsage.record(machine.psu.powerDraw)
+ _powerUsage.record(machine.powerDraw)
}
}
)