From 53dfe9e4f55660a1a02a9e2c817128dc233f5286 Mon Sep 17 00:00:00 2001 From: Christoph Kluge Date: Thu, 19 Dec 2024 11:00:12 +0100 Subject: [PATCH] fix: footprint peak is default if footprint stat is avg --- .../src/generic/helper/JobFootprint.svelte | 40 ++++--------------- 1 file changed, 8 insertions(+), 32 deletions(-) diff --git a/web/frontend/src/generic/helper/JobFootprint.svelte b/web/frontend/src/generic/helper/JobFootprint.svelte index 187eff9..f9bc165 100644 --- a/web/frontend/src/generic/helper/JobFootprint.svelte +++ b/web/frontend/src/generic/helper/JobFootprint.svelte @@ -9,12 +9,11 @@ --> @@ -93,7 +69,7 @@ const unit = (fmc?.unit?.prefix ? fmc.unit.prefix : "") + (fmc?.unit?.base ? fmc.unit.base : "") // Threshold / -Differences - const fmt = findJobThresholds(job, fmc); + const fmt = findJobThresholds(job, jf.stat, fmc); if (jf.name === "flops_any") fmt.peak = round(fmt.peak * 0.85, 0); // Define basic data -> Value: Use as Provided