Update frontend; Do not handle avg of NaN as error

Fixes #17
This commit is contained in:
Lou Knauer 2022-03-01 10:23:08 +01:00
parent 5764937c7a
commit 5c6d6dfa67
2 changed files with 3 additions and 2 deletions

@ -1 +1 @@
Subproject commit d8b1232bcbf02543d6edc1e5e36b6ea484473b9a
Subproject commit 984532dbf2a05d670c90a16cba9c93de813e304a

View File

@ -530,7 +530,8 @@ func (ccms *CCMetricStore) LoadNodeData(cluster, partition string, metrics, node
}
if qdata.Avg.IsNaN() || qdata.Min.IsNaN() || qdata.Max.IsNaN() {
return nil, fmt.Errorf("fetching %s for node %s failed: %s", metric, query.Hostname, "avg/min/max is NaN")
// return nil, fmt.Errorf("fetching %s for node %s failed: %s", metric, query.Hostname, "avg/min/max is NaN")
qdata.Avg, qdata.Min, qdata.Max = 0., 0., 0.
}
hostdata, ok := data[query.Hostname]