From 87c80af5afef922b029fd6d380fa29f4d6e1acc8 Mon Sep 17 00:00:00 2001 From: Christoph Kluge Date: Fri, 7 Oct 2022 13:35:44 +0200 Subject: [PATCH] Format status gauge values via existing svelte function - Temporary solution to catch Kilo, Mega, Giga prefixes - Backend conversion requires more extensive graphql changes than expected --- web/frontend/src/Status.root.svelte | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/web/frontend/src/Status.root.svelte b/web/frontend/src/Status.root.svelte index 28c6251..3a03433 100644 --- a/web/frontend/src/Status.root.svelte +++ b/web/frontend/src/Status.root.svelte @@ -3,7 +3,7 @@ import Roofline, { transformPerNodeData } from './plots/Roofline.svelte' import Histogram from './plots/Histogram.svelte' import { Row, Col, Spinner, Card, CardHeader, CardTitle, CardBody, Table, Progress, Icon } from 'sveltestrap' - import { init } from './utils.js' + import { init, formatNumber } from './utils.js' import { operationStore, query } from '@urql/svelte' const { query: initq } = init() @@ -112,17 +112,17 @@ Allocated Nodes
- ({allocatedNodes[subCluster.name]} / {subCluster.numberOfNodes}) + ({allocatedNodes[subCluster.name]} Nodes / {subCluster.numberOfNodes} Total Nodes) Flop Rate (Any)
- ({flopRate[subCluster.name]} / {subCluster.flopRateSimd * subCluster.numberOfNodes}) + ({formatNumber(flopRate[subCluster.name])}Flops/s / {formatNumber((subCluster.flopRateSimd * subCluster.numberOfNodes))}Flops/s [Max]) MemBw Rate
- ({memBwRate[subCluster.name]} / {subCluster.memoryBandwidth * subCluster.numberOfNodes}) + ({formatNumber(memBwRate[subCluster.name])}Byte/s / {formatNumber((subCluster.memoryBandwidth * subCluster.numberOfNodes))}Byte/s [Max]) @@ -132,7 +132,7 @@
{#key $mainQuery.data.nodeMetrics} data.subCluster == subCluster.name))} /> {/key}