diff options
Diffstat (limited to 'usr/local/www/javascript/index')
-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]); |