replace NewFloat by NewFloat64 and NewFloat32

This commit is contained in:
wanyaoqi
2020-10-14 11:54:30 +08:00
parent 63887337fd
commit 1cfee7cf6c
7 changed files with 20 additions and 20 deletions
@@ -230,7 +230,7 @@ func describeEvalResultTojson(evalMatchsMap map[string][]*monitor.EvalMatch, map
idTag := getMetricIdTag(evalMatch.Tags)
if val, ok := idTag[mappingId]; ok {
if val == mappingVal {
problem.Add(jsonutils.NewFloat(*evalMatch.Value), evalMatch.Metric)
problem.Add(jsonutils.NewFloat64(*evalMatch.Value), evalMatch.Metric)
}
}
}