review user vinformation block, reorder reactive var in jobList

This commit is contained in:
Christoph Kluge
2026-02-05 10:33:20 +01:00
parent af73ce9c6d
commit 5616801f3e
3 changed files with 55 additions and 11 deletions

View File

@@ -79,7 +79,6 @@
/* Derived */
const jobId = $derived(job?.id);
const refinedData = $derived($metricsQuery?.data?.jobMetrics ? sortAndSelectScope($metricsQuery.data.jobMetrics) : []);
const scopes = $derived.by(() => {
if (job.numNodes == 1) {
if (job.numAcc >= 1) return ["core", "accelerator"];
@@ -95,6 +94,7 @@
variables: { id: jobId, metrics, scopes, selectedResolution },
})
);
const refinedData = $derived($metricsQuery?.data?.jobMetrics ? sortAndSelectScope($metricsQuery.data.jobMetrics) : []);
/* Effects */
$effect(() => {

View File

@@ -32,10 +32,6 @@ export function scaleNumber(x, p = '') {
}
}
export function roundTwoDigits(x) {
return Math.round(x * 100) / 100
}
export function scaleNumbers(x, y, p = '') {
const oldPower = power[prefix.indexOf(p)]
const rawXValue = x * oldPower
@@ -77,6 +73,10 @@ export function formatUnixTime(t, withDate = false) {
}
}
export function roundTwoDigits(x) {
return Math.round(x * 100) / 100
}
// const equalsCheck = (a, b) => {
// return JSON.stringify(a) === JSON.stringify(b);
// }