diff --git a/web/frontend/src/status/StatusDash.svelte b/web/frontend/src/status/StatusDash.svelte index 4e41548..03a8cc4 100644 --- a/web/frontend/src/status/StatusDash.svelte +++ b/web/frontend/src/status/StatusDash.svelte @@ -51,6 +51,7 @@ let stackedFrom = $state(Math.floor(Date.now() / 1000) - 14400); // Bar Gauges let allocatedNodes = $state({}); + let allocatedCores = $state({}); let allocatedAccs = $state({}); let flopRate = $state({}); let flopRateUnitPrefix = $state({}); @@ -179,6 +180,7 @@ id totalJobs totalUsers + totalCores totalAccs } } @@ -220,6 +222,10 @@ $statusQuery.data.allocatedNodes.find( ({ name }) => name == subCluster.name, )?.count || 0; + allocatedCores[subCluster.name] = + $statusQuery.data.jobsStatistics.find( + ({ id }) => id == subCluster.name, + )?.totalCores || 0; allocatedAccs[subCluster.name] = $statusQuery.data.jobsStatistics.find( ({ id }) => id == subCluster.name, @@ -416,8 +422,8 @@ + + Allocated Cores +
+ +
+ {allocatedCores[subCluster.name]} / {subCluster.socketsPerNode * subCluster.coresPerSocket * subCluster.numberOfNodes} + Cores + {#if totalAccs[subCluster.name] !== null} Allocated Accelerators