Update frontend

This commit is contained in:
Lou Knauer 2022-02-08 11:03:32 +01:00
parent d63130923c
commit 6f56274ff6
2 changed files with 3 additions and 3 deletions

@ -1 +1 @@
Subproject commit 63f98d12dd7c7cac3dbdc27e635d12f1ed4958df Subproject commit cebc46c58c892349429990ca30df1758b803e9cb

View File

@ -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,