summaryrefslogtreecommitdiffstats
path: root/usr/local/www/graph.php
diff options
context:
space:
mode:
authorDarren Embry <dse@webonastick.com>2012-08-03 21:22:35 -0400
committerDarren Embry <dse@webonastick.com>2012-09-06 13:08:50 -0400
commit73567959ef46bcd8bf4e94b2bb2c1030cb580565 (patch)
treee7aecad46504ea7b84dc716aa8f739d43aae602e /usr/local/www/graph.php
parent9500537d51b481086e8a685b70e825688c0526e1 (diff)
downloadpfsense-73567959ef46bcd8bf4e94b2bb2c1030cb580565.zip
pfsense-73567959ef46bcd8bf4e94b2bb2c1030cb580565.tar.gz
never call parseInt without a radix.
Diffstat (limited to 'usr/local/www/graph.php')
-rwxr-xr-xusr/local/www/graph.php4
1 files 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))
OpenPOWER on IntegriCloud