summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-01-06 21:21:03 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-01-06 21:21:03 +0000
commit922b44204b8e7b468e37911f7a1aa4142ee2d652 (patch)
treeb9774d8b9af5c123d1edb17c97ab63583ec3a927
parent4cb423d5c1a3c67b377eddc9b30e5f2c04426f34 (diff)
downloadpfsense-922b44204b8e7b468e37911f7a1aa4142ee2d652.zip
pfsense-922b44204b8e7b468e37911f7a1aa4142ee2d652.tar.gz
Use a for() loop
-rw-r--r--usr/local/www/javascript/index/sajax.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr/local/www/javascript/index/sajax.js b/usr/local/www/javascript/index/sajax.js
index 2437e09..8f1051f 100644
--- a/usr/local/www/javascript/index/sajax.js
+++ b/usr/local/www/javascript/index/sajax.js
@@ -14,9 +14,10 @@ function stats(x) {
var values = x.split("|");
- for(var val in values)
- if(val == 'undefined')
+ for(var counter=0; counter<x.length; x++) {
+ if(values[counter] == 'undefined' || values[counter] == null)
return;
+ }
updateCPU(values[0]);
updateMemory(values[1]);
OpenPOWER on IntegriCloud