use ParseFloat, not ParseInt

This commit is contained in:
sawka 2024-07-29 12:02:44 -07:00
parent 551802dbd7
commit e70f0bb9ab

View File

@ -47,9 +47,9 @@ func parseMetaSets(metaSets []string) (map[string]interface{}, error) {
} }
meta[fields[0]] = val meta[fields[0]] = val
} else { } else {
ival, err := strconv.ParseInt(setVal, 10, 64) fval, err := strconv.ParseFloat(setVal, 64)
if err == nil { if err == nil {
meta[fields[0]] = ival meta[fields[0]] = fval
} else { } else {
meta[fields[0]] = setVal meta[fields[0]] = setVal
} }