From 83d472ecd659fe6d70d8b756d9740df8b84920a8 Mon Sep 17 00:00:00 2001 From: Christoph Kluge Date: Mon, 27 Jan 2025 12:35:42 +0100 Subject: [PATCH] Fix duration histograms in status and analysis view, use defaults --- web/frontend/src/Analysis.root.svelte | 7 +++++-- web/frontend/src/Status.root.svelte | 16 +++++++++++++--- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/web/frontend/src/Analysis.root.svelte b/web/frontend/src/Analysis.root.svelte index 2e977e8..0442394 100644 --- a/web/frontend/src/Analysis.root.svelte +++ b/web/frontend/src/Analysis.root.svelte @@ -174,6 +174,7 @@ }, }); + // Note: Different footprints than those saved in DB per Job -> Caused by Legacy Naming $: footprintsQuery = queryStore({ client: client, query: gql` @@ -470,10 +471,12 @@ height={300} data={convert2uplot($statsQuery.data.stats[0].histDuration)} title="Duration Distribution" - xlabel="Current Runtimes" - xunit="Hours" + xlabel="Current Job Runtimes" + xunit="Runtime" ylabel="Number of Jobs" yunit="Jobs" + usesBins + xtime /> {/key} diff --git a/web/frontend/src/Status.root.svelte b/web/frontend/src/Status.root.svelte index e49d11a..98f23a3 100644 --- a/web/frontend/src/Status.root.svelte +++ b/web/frontend/src/Status.root.svelte @@ -463,7 +463,7 @@
- + @@ -587,17 +587,23 @@ {/key} +
+ + + {#key $mainQuery.data.stats} {/key} @@ -640,7 +646,11 @@ {/key} +
+ + + {#if metricsInHistograms} {#key $mainQuery.data.stats[0].histMetrics}