diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-01-06 21:21:03 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-01-06 21:21:03 +0000 |
commit | 922b44204b8e7b468e37911f7a1aa4142ee2d652 (patch) | |
tree | b9774d8b9af5c123d1edb17c97ab63583ec3a927 /usr/local/www | |
parent | 4cb423d5c1a3c67b377eddc9b30e5f2c04426f34 (diff) | |
download | pfsense-922b44204b8e7b468e37911f7a1aa4142ee2d652.zip pfsense-922b44204b8e7b468e37911f7a1aa4142ee2d652.tar.gz |
Use a for() loop
Diffstat (limited to 'usr/local/www')
-rw-r--r-- | usr/local/www/javascript/index/sajax.js | 5 |
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]); |