mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2026-07-22 06:50:38 +02:00
Merge branch 'hotfix' of github.com:ClusterCockpit/cc-backend into hotfix
This commit is contained in:
@@ -129,9 +129,9 @@
|
||||
/>
|
||||
{/snippet}
|
||||
|
||||
{#key $metricStatusQuery.data.jobsStatistics[0].histMetrics}
|
||||
{#key $metricStatusQuery?.data?.jobsStatistics[0]?.histMetrics}
|
||||
<PlotGrid
|
||||
items={$metricStatusQuery.data.jobsStatistics[0].histMetrics}
|
||||
items={$metricStatusQuery?.data?.jobsStatistics[0]?.histMetrics}
|
||||
itemsPerRow={2}
|
||||
{gridContent}
|
||||
/>
|
||||
|
||||
@@ -294,8 +294,8 @@
|
||||
const flopsData = subclusterData[i].metrics.find((s) => s.name == "flops_any")
|
||||
const memBwData = subclusterData[i].metrics.find((s) => s.name == "mem_bw")
|
||||
|
||||
const f = flopsData.metric.series[0].statistics.avg
|
||||
const m = memBwData.metric.series[0].statistics.avg
|
||||
const f = flopsData?.metric?.series[0]?.statistics?.avg || 0
|
||||
const m = memBwData?.metric?.series[0]?.statistics?.avg || 0
|
||||
|
||||
let intensity = f / m
|
||||
if (Number.isNaN(intensity) || !Number.isFinite(intensity)) {
|
||||
|
||||
@@ -223,10 +223,10 @@
|
||||
{:else if $topStatsQuery?.data && $nodeStatusQuery?.data}
|
||||
<Row>
|
||||
<Col xs="12" lg="4" class="p-2">
|
||||
{#key $nodeStatusQuery.data.jobsStatistics[0].histDuration}
|
||||
{#key $nodeStatusQuery?.data?.jobsStatistics[0]?.histDuration}
|
||||
<Histogram
|
||||
data={convert2uplot(
|
||||
$nodeStatusQuery.data.jobsStatistics[0].histDuration,
|
||||
$nodeStatusQuery?.data?.jobsStatistics[0]?.histDuration,
|
||||
)}
|
||||
title="Duration Distribution"
|
||||
xlabel="Current Job Runtimes"
|
||||
@@ -349,7 +349,7 @@
|
||||
<Col xs="12" lg="4" class="p-2">
|
||||
<Histogram
|
||||
data={convert2uplot(
|
||||
$nodeStatusQuery.data.jobsStatistics[0].histNumNodes,
|
||||
$nodeStatusQuery?.data?.jobsStatistics[0]?.histNumNodes,
|
||||
)}
|
||||
title="Number of Nodes Distribution"
|
||||
xlabel="Allocated Nodes"
|
||||
@@ -469,7 +469,7 @@
|
||||
<Col xs="12" lg="4" class="p-2">
|
||||
<Histogram
|
||||
data={convert2uplot(
|
||||
$nodeStatusQuery.data.jobsStatistics[0].histNumAccs,
|
||||
$nodeStatusQuery?.data?.jobsStatistics[0]?.histNumAccs,
|
||||
)}
|
||||
title="Number of Accelerators Distribution"
|
||||
xlabel="Allocated Accs"
|
||||
|
||||
Reference in New Issue
Block a user