X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=libs%2Fweb%2Fhtdocs%2Fluci-static%2Fresources%2Fcbi.js;h=ddafd791805dfbfaa2ef0219ec0a01fedee1d164;hp=41e75120620aaf7ac1e018e61f4c77575f820d9e;hb=8cab9e2b8fcb6116d49b116bbb747069551d094c;hpb=831654f504c7a9ef8efc9286e1f09cf942ce05c8 diff --git a/libs/web/htdocs/luci-static/resources/cbi.js b/libs/web/htdocs/luci-static/resources/cbi.js index 41e751206..ddafd7918 100644 --- a/libs/web/htdocs/luci-static/resources/cbi.js +++ b/libs/web/htdocs/luci-static/resources/cbi.js @@ -1032,7 +1032,7 @@ if( ! String.format ) var pr = pPrecision ? Math.floor(10*parseFloat('0'+pPrecision)) : 2; var i = 0; - var val = (param || 0); + var val = parseFloat(param || 0); var units = [ '', 'K', 'M', 'G', 'T', 'P', 'E' ]; for (i = 0; (i < units.length) && (val > mf); i++)