mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2024-12-27 05:49:04 +01:00
Update frontend
This commit is contained in:
parent
d63130923c
commit
6f56274ff6
2
frontend
2
frontend
@ -1 +1 @@
|
|||||||
Subproject commit 63f98d12dd7c7cac3dbdc27e635d12f1ed4958df
|
Subproject commit cebc46c58c892349429990ca30df1758b803e9cb
|
@ -497,7 +497,7 @@ func (ccms *CCMetricStore) LoadNodeData(cluster, partition string, metrics, node
|
|||||||
metric := ccms.toLocalName(query.Metric)
|
metric := ccms.toLocalName(query.Metric)
|
||||||
qdata := res[0]
|
qdata := res[0]
|
||||||
if qdata.Error != nil {
|
if qdata.Error != nil {
|
||||||
return nil, fmt.Errorf("fetching %s for node %s failed: %s", query.Metric, query.Hostname, *qdata.Error)
|
return nil, fmt.Errorf("fetching %s for node %s failed: %s", metric, query.Hostname, *qdata.Error)
|
||||||
}
|
}
|
||||||
|
|
||||||
if qdata.Avg.IsNaN() || qdata.Min.IsNaN() || qdata.Max.IsNaN() {
|
if qdata.Avg.IsNaN() || qdata.Min.IsNaN() || qdata.Max.IsNaN() {
|
||||||
@ -511,7 +511,7 @@ func (ccms *CCMetricStore) LoadNodeData(cluster, partition string, metrics, node
|
|||||||
}
|
}
|
||||||
|
|
||||||
mc := config.GetMetricConfig(cluster, metric)
|
mc := config.GetMetricConfig(cluster, metric)
|
||||||
hostdata[query.Metric] = append(hostdata[query.Metric], &schema.JobMetric{
|
hostdata[metric] = append(hostdata[metric], &schema.JobMetric{
|
||||||
Unit: mc.Unit,
|
Unit: mc.Unit,
|
||||||
Scope: schema.MetricScopeNode,
|
Scope: schema.MetricScopeNode,
|
||||||
Timestep: mc.Timestep,
|
Timestep: mc.Timestep,
|
||||||
|
Loading…
Reference in New Issue
Block a user