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: Thor on May 26, '05 05:01:55PM


I used the modified version of the weather widget for some time now. As I never restart my Powerbook (only put it to sleep) I experienced that each weather widget is using up more and more of REAL memory (RPRVT in Top).

After 8 days with approximately 4-6 hours working per day, each weather widget is already using up more than 20MB and has a CPU time (TIME in Top) of more than 50 Min.

I have just restored the original version and I will look if the behaviour ist better now.


[ Reply to This | # ]
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 | # ]