fix bug in aggregated waste_CPU calculation

This commit is contained in:
2026-06-19 18:01:02 +02:00
parent 6062602d09
commit 32a036c1bc
+2 -2
View File
@@ -751,7 +751,7 @@ def make_single_row(rec: JobRecord, dflt_mpcpu: float) -> OutputRow:
waste_mem = max(0,walltime * (100-rec.mem_eff)/100 \
* (rec.reqmem_gb - rec.cpus * dflt_mpcpu))
waste_cpu=None
waste_cpu = None
if rec.cpu_eff is not None:
waste_cpu = walltime * (100-rec.cpu_eff) * rec.cpus
@@ -814,7 +814,7 @@ def make_aggregate_row(records: list[JobRecord], username: str,
waste_cpu=None
if cpu_efficiency is not None and walltime is not None:
waste_cpu = walltime * (100-cpu_efficiency) * first.cpus
waste_cpu = count * walltime * (100-cpu_efficiency) * first.cpus
return OutputRow(
username=username,