mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2025-08-03 09:40:35 +02:00
Fix polar and roofline sizes in jobView
- add option for adaptable roofline sizing
This commit is contained in:
@@ -131,7 +131,6 @@
|
||||
lazyFetchMoreMetrics();
|
||||
|
||||
let plots = {},
|
||||
roofWidth,
|
||||
jobTags,
|
||||
statsTable;
|
||||
$: document.title = $initq.fetching
|
||||
@@ -253,24 +252,20 @@
|
||||
/>
|
||||
</Col>
|
||||
<Col>
|
||||
<div bind:clientWidth={roofWidth}>
|
||||
<Roofline
|
||||
width={roofWidth - 10}
|
||||
height={(roofWidth / 2) - 5}
|
||||
renderTime={true}
|
||||
cluster={clusters
|
||||
.find((c) => c.name == $initq.data.job.cluster)
|
||||
.subClusters.find(
|
||||
(sc) => sc.name == $initq.data.job.subCluster
|
||||
)}
|
||||
data={
|
||||
transformDataForRoofline (
|
||||
$jobMetrics.data.jobMetrics.find((m) => m.name == "flops_any" && m.scope == "node").metric,
|
||||
$jobMetrics.data.jobMetrics.find((m) => m.name == "mem_bw" && m.scope == "node").metric
|
||||
)
|
||||
}
|
||||
/>
|
||||
</div>
|
||||
<Roofline
|
||||
renderTime={true}
|
||||
cluster={clusters
|
||||
.find((c) => c.name == $initq.data.job.cluster)
|
||||
.subClusters.find(
|
||||
(sc) => sc.name == $initq.data.job.subCluster
|
||||
)}
|
||||
data={
|
||||
transformDataForRoofline (
|
||||
$jobMetrics.data.jobMetrics.find((m) => m.name == "flops_any" && m.scope == "node").metric,
|
||||
$jobMetrics.data.jobMetrics.find((m) => m.name == "mem_bw" && m.scope == "node").metric
|
||||
)
|
||||
}
|
||||
/>
|
||||
</Col>
|
||||
{:else}
|
||||
<Col />
|
||||
|
Reference in New Issue
Block a user