mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2026-03-01 05:47:29 +01:00
various small dashboard fixes
- piechart color, idle count cap, metricHistoMaximum increased
This commit is contained in:
@@ -242,10 +242,14 @@
|
||||
}
|
||||
}
|
||||
|
||||
// Get Idle Infos after Sums
|
||||
// Get Simple Idle Infos after Sums by Diff
|
||||
if (!rawInfos['idleNodes']) rawInfos['idleNodes'] = rawInfos['totalNodes'] - rawInfos['allocatedNodes'];
|
||||
if (!rawInfos['idleCores']) rawInfos['idleCores'] = rawInfos['totalCores'] - rawInfos['allocatedCores'];
|
||||
if (!rawInfos['idleAccs']) rawInfos['idleAccs'] = rawInfos['totalAccs'] - rawInfos['allocatedAccs'];
|
||||
// Cap at 0 (Negative hints towards Config <> Reality Mismatch!)
|
||||
if (rawInfos['idleNodes'] < 0) rawInfos['idleNodes'] = 0;
|
||||
if (rawInfos['idleCores'] < 0) rawInfos['idleCores'] = 0;
|
||||
if (rawInfos['idleAccs'] < 0) rawInfos['idleAccs'] = 0;
|
||||
|
||||
// Keymetrics (Data on Cluster-Scope)
|
||||
let rawFlops = $statusQuery?.data?.nodeMetrics?.reduce((sum, node) =>
|
||||
|
||||
Reference in New Issue
Block a user