diff --git a/modules/luci-base/htdocs/luci-static/resources/cbi.js b/modules/luci-base/htdocs/luci-static/resources/cbi.js index 513256e4c9..b8446ec52f 100644 --- a/modules/luci-base/htdocs/luci-static/resources/cbi.js +++ b/modules/luci-base/htdocs/luci-static/resources/cbi.js @@ -646,7 +646,11 @@ String.prototype.format = function() for (i = 0; (i < units.length) && (val > mf); i++) val /= mf; - subst = (i ? val.toFixed(pr) : val) + units[i]; + if (i) + subst = val.toFixed(pr) + units[i] + (mf == 1024 ? 'i' : ''); + else + subst = val + ' '; + pMinLength = null; break; }