From 73567959ef46bcd8bf4e94b2bb2c1030cb580565 Mon Sep 17 00:00:00 2001 From: Darren Embry Date: Fri, 3 Aug 2012 21:22:35 -0400 Subject: never call parseInt without a radix. --- usr/local/www/graph.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/local/www/graph.php b/usr/local/www/graph.php index fb11d42..6a227fa 100755 --- a/usr/local/www/graph.php +++ b/usr/local/www/graph.php @@ -218,8 +218,8 @@ function plot_data(obj) { var t = obj.content.split("|"); var ugmt = parseFloat(t[0]); // ugmt is an unixtimestamp style - var ifin = parseInt(t[1]); // number of bytes received by the interface - var ifout = parseInt(t[2]); // number of bytes sent by the interface + var ifin = parseInt(t[1], 10); // number of bytes received by the interface + var ifout = parseInt(t[2], 10); // number of bytes sent by the interface var scale; if (!isNumber(ifin) || !isNumber(ifout)) -- cgit v1.1