From f7f15663e2b0e5221852a2e50ef5723071e440bc Mon Sep 17 00:00:00 2001 From: Rouslan Placella Date: Sun, 9 Dec 2012 00:30:30 +0000 Subject: [PATCH] There is no radix parameter in parseFloat --- js/jqplot/plugins/jqplot.byteFormatter.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/js/jqplot/plugins/jqplot.byteFormatter.js b/js/jqplot/plugins/jqplot.byteFormatter.js index 75c7a194be..68d2d8625b 100644 --- a/js/jqplot/plugins/jqplot.byteFormatter.js +++ b/js/jqplot/plugins/jqplot.byteFormatter.js @@ -23,11 +23,15 @@ format + ' ' + units[index], val ); }; + /** + * The index indicates what unit the incoming data will be in. + * 0 for bytes, 1 for kilobytes and so on... + */ $.jqplot.byteFormatter = function (index) { index = index || 0; return function (format, val) { if (typeof val === 'number') { - val = parseFloat(val, 10) || 0; + val = parseFloat(val) || 0; return formatByte(val, index); } else { return String(val);