From 4399c1d590bafa68a820684688156382ead790ed Mon Sep 17 00:00:00 2001 From: Christoph Kluge Date: Mon, 12 May 2025 11:39:45 +0200 Subject: [PATCH] Add metric units to compareTable head, format metric subheads --- web/frontend/src/generic/JobCompare.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/frontend/src/generic/JobCompare.svelte b/web/frontend/src/generic/JobCompare.svelte index 592be55..5e72af4 100644 --- a/web/frontend/src/generic/JobCompare.svelte +++ b/web/frontend/src/generic/JobCompare.svelte @@ -301,7 +301,7 @@ Cluster Resources {#each metrics as metric} - {metric} + {metric} {comparePlotData[metric]?.unit? `(${comparePlotData[metric]?.unit})` : ''} {/each} @@ -355,7 +355,7 @@ {#each metrics as metric} {#each ["min", "avg", "max"] as stat} sortBy(metric, stat)}> - {stat} + {stat.charAt(0).toUpperCase() + stat.slice(1)}