Fix JobCompare Labelling and Rerender

This commit is contained in:
Christoph Kluge 2025-05-08 10:48:30 +02:00
parent 69286881e4
commit ab616f8f79

View File

@ -83,8 +83,9 @@
$: matchedCompareJobs = $compareData.data != null ? $compareData.data.jobsMetricStats.length : -1;
$: if ($compareData.data != null) {
jobIds = [];
comparePlotData = {}
jobs2uplot($compareData.data.jobsMetricStats, metrics)
jobClusters = [];
comparePlotData = {};
jobs2uplot($compareData.data.jobsMetricStats, metrics);
}
/* FUNCTIONS */
@ -118,7 +119,6 @@
}
function jobs2uplot(jobs, metrics) {
// Prep
// Resources Init
comparePlotData['resources'] = {unit:'', data: [[],[],[],[],[],[]]} // data: [X, XST, XRT, YNODES, YTHREADS, YACCS]
// Metric Init
@ -201,6 +201,7 @@
</Col>
</Row>
{:else}
{#key comparePlotData}
<Row>
<Col>
<Comparogram
@ -232,6 +233,7 @@
</Col>
</Row>
{/each}
{/key}
<hr/><hr/>
{#each $compareData.data.jobsMetricStats as job, jindex (job.jobId)}
<Row>