mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Fix CPU power consumption calculation by using cores allocated to job
This commit is contained in:
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;
|
||||
|
||||
Reference in New Issue
Block a user