mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2024-12-25 12:59:06 +01:00
fix: add acc scope to job query if acc >= 1
This commit is contained in:
parent
fc260b2291
commit
aafa29db8b
@ -24,7 +24,11 @@
|
|||||||
export let showFootprint;
|
export let showFootprint;
|
||||||
|
|
||||||
let { id } = job;
|
let { id } = job;
|
||||||
let scopes = [job.numNodes == 1 ? "core" : "node"];
|
let scopes = job.numNodes == 1
|
||||||
|
? job.numAcc >= 1
|
||||||
|
? ["core", "accelerator"]
|
||||||
|
: ["core"]
|
||||||
|
: ["node"];
|
||||||
|
|
||||||
function distinct(value, index, array) {
|
function distinct(value, index, array) {
|
||||||
return array.indexOf(value) === index;
|
return array.indexOf(value) === index;
|
||||||
@ -83,7 +87,11 @@
|
|||||||
scopes = ["node"];
|
scopes = ["node"];
|
||||||
} else {
|
} else {
|
||||||
queryMetrics = [...metrics];
|
queryMetrics = [...metrics];
|
||||||
scopes = [job.numNodes == 1 ? "core" : "node"];
|
scopes = job.numNodes == 1
|
||||||
|
? job.numAcc >= 1
|
||||||
|
? ["core", "accelerator"]
|
||||||
|
: ["core"]
|
||||||
|
: ["node"];
|
||||||
}
|
}
|
||||||
|
|
||||||
export function refresh() {
|
export function refresh() {
|
||||||
|
Loading…
Reference in New Issue
Block a user