Fix CPU power consumption calculation by using cores allocated to job

This commit is contained in:
Rendani Gangazhe
2023-06-02 10:08:18 -04:00
committed by Dannon Baker
parent 3b2bf1a3f6
commit 2567655bdb
@@ -36,7 +36,7 @@ const carbonEmissions = computed(() => {
const cpuInfo = props.estimatedServerInstance.cpuInfo;
const tdpPerCore = cpuInfo.tdp / cpuInfo.totalAvailableCores;
const normalizedTdpPerCore = tdpPerCore * runtimeInHours;
const normalizedTdpPerCore = tdpPerCore * props.coresAllocated;
// Power needed in Watt
const powerNeededCpu = powerUsageEffectiveness * normalizedTdpPerCore;