From d2c5fcc12df9aae4fd505ac1633eafcdfdd1c733 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Wed, 11 Mar 2009 18:35:51 -0400 Subject: [PATCH] * Make function opening braces uniform. * Minor documentation additions --- usr/local/www/javascript/index/sajax.js | 32 +++++++++---------------- 1 file changed, 11 insertions(+), 21 deletions(-) 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