diff options
Diffstat (limited to 'usr/local/www/javascript')
-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 0a8261e..1ab0e80 100644 --- a/usr/local/www/javascript/index/sajax.js +++ b/usr/local/www/javascript/index/sajax.js @@ -14,8 +14,9 @@ function stats(x) { var values = x.split("|"); - if(values[0] == 'undefined') - return; + foreach($values as $value) + if(value == 'undefined') + return; updateCPU(values[0]); updateMemory(values[1]); |