diff --git a/usr/local/www/javascript/index/sajax.js b/usr/local/www/javascript/index/sajax.js index ffe18433bc..0d66be355f 100644 --- a/usr/local/www/javascript/index/sajax.js +++ b/usr/local/www/javascript/index/sajax.js @@ -1,24 +1,21 @@ -// Seconds * 1000 = value +/* Most widgets update their backend data every 10 seconds. 11 seconds + * will ensure that we update the GUI right after the stats are updated. + * Seconds * 1000 = value + */ var update_interval = 11000; - -function updateMeters() -{ +function updateMeters() { x_get_stats(stats); - window.setTimeout('updateMeters()', update_interval); } function stats(x) { - var values = x.split("|"); - for(var counter=0; counter