Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the '10.4: Update Weather widget in the background' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: Update Weather widget in the background
Authored by: milllion on Jun 04, '05 05:11:49PM

After using this hint (the lag annoyed the hell out of me) I noticed that my weather widgets were eating too much cpu pie. tut tut.

So, digging around in the code I find this (line 29):

var timerInterval = 120000; // updates every two minutes

which is just silly. So if you don't want to be giving ~20% cpu to a widget every two minutes change this to something more reasonable, e.g. for hourly updates change that line to:

var timerInterval = 60 * 60 * 1000; // updates every hour

much better. you could probably even slow it down more. depends on your definition of "current".

[ Reply to This | # ]