mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2024-12-27 05:49:04 +01:00
commit
34fc6b1541
@ -181,7 +181,7 @@
|
|||||||
>Metric disabled for subcluster '{job.subCluster}'</Card
|
>Metric disabled for subcluster '{job.subCluster}'</Card
|
||||||
>
|
>
|
||||||
{:else}
|
{:else}
|
||||||
<Card body color="warning">Missing Data</Card>
|
<Card body color="warning">Missing Full Dataset</Card>
|
||||||
{/if}
|
{/if}
|
||||||
</td>
|
</td>
|
||||||
{/each}
|
{/each}
|
||||||
|
@ -24,6 +24,7 @@
|
|||||||
import uPlot from 'uplot'
|
import uPlot from 'uplot'
|
||||||
import { formatNumber } from '../units.js'
|
import { formatNumber } from '../units.js'
|
||||||
import { getContext, onMount, onDestroy } from 'svelte'
|
import { getContext, onMount, onDestroy } from 'svelte'
|
||||||
|
import { Card } from 'sveltestrap'
|
||||||
|
|
||||||
export let width
|
export let width
|
||||||
export let height
|
export let height
|
||||||
@ -219,11 +220,15 @@
|
|||||||
}, resizeSleepTime)
|
}, resizeSleepTime)
|
||||||
}
|
}
|
||||||
|
|
||||||
$: onSizeChange(width, height)
|
$: if (series[0].data.length > 0) {
|
||||||
|
onSizeChange(width, height)
|
||||||
|
}
|
||||||
|
|
||||||
onMount(() => {
|
onMount(() => {
|
||||||
plotWrapper.style.backgroundColor = backgroundColor()
|
if (series[0].data.length > 0) {
|
||||||
render()
|
plotWrapper.style.backgroundColor = backgroundColor()
|
||||||
|
render()
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
onDestroy(() => {
|
onDestroy(() => {
|
||||||
@ -312,9 +317,11 @@
|
|||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<!--Add empty series warning card-->
|
{#if series[0].data.length > 0}
|
||||||
<div bind:this={plotWrapper} class="cc-plot"></div>
|
<div bind:this={plotWrapper} class="cc-plot"></div>
|
||||||
|
{:else}
|
||||||
|
<Card style="margin-left: 2rem;margin-right: 2rem;" body color="warning">Cannot render plot: No series data found for <code>{metric}</code></Card>
|
||||||
|
{/if}
|
||||||
<style>
|
<style>
|
||||||
.cc-plot {
|
.cc-plot {
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
|
@ -183,9 +183,10 @@ export function groupByScope(jobMetrics) {
|
|||||||
const scopeGranularity = {
|
const scopeGranularity = {
|
||||||
node: 10,
|
node: 10,
|
||||||
socket: 5,
|
socket: 5,
|
||||||
accelerator: 5,
|
memorydomain: 4,
|
||||||
core: 2,
|
core: 3,
|
||||||
hwthread: 1,
|
hwthread: 2,
|
||||||
|
accelerator: 1
|
||||||
};
|
};
|
||||||
|
|
||||||
export function maxScope(scopes) {
|
export function maxScope(scopes) {
|
||||||
|
Loading…
Reference in New Issue
Block a user