mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-01-02 18:39:05 +01:00
use ParseFloat, not ParseInt
This commit is contained in:
parent
551802dbd7
commit
e70f0bb9ab
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user