]> arthur.barton.de Git - netdata.git/blobdiff - plugins.d/charts.d.plugin
fix space padding in float2int
[netdata.git] / plugins.d / charts.d.plugin
index b3b387f964f2c63faf9c2d8f4744d718fbe596b4..53f540257b247b21dd9f486f0592bcb435898f88 100755 (executable)
@@ -241,9 +241,10 @@ fixid() {
 # so that no fork is necessary
 # the multiplier must be a power of 10
 float2int() {
-       local f="$1" m="$2" a b l
+       local f m="$2" a b l v=($1)
+       f=${v[0]}
 
-       #echo >&2 "f='${f}', m='${m}'"
+       # echo >&2 "value='${1}' f='${f}', m='${m}'"
 
        # the length of the multiplier - 1
        l=$[ ${#m} - 1 ]