On Wed, 2005-03-16 at 19:12 -0500, Joey Hess wrote:

> I have gworldclock configured to display 8 time zones and display the
> time in hh:mm format. Just sitting there doing nothing for 59 out of 60
> seconds, the program still consumes 2% of my cpu. That's more cpu than
> top consumes for comparison.
> 
> It seems to be reading the zoneinfo files for each timezone and doing
> some X operations every second.
> 
> I'd like to at least have a way to tweak its update interval even if it
> can't be intelligent about doing that on its own.
> 

A bug is already filed about this.

I set it up to tick every second, 'cause I like it that way.
Maybe I could add a specific button to only show minutes (only updating
every minute).  It'd be nice to do that automatically based on the date
format you've given, but that might be too tricky.  Then again, I guess
it's only a matter of checking the presence of %c, %N, %r, %s, %S or %X.
There'd be no point in checking for hours only (without minutes).

If you can think of a way to reduce CPU usage while showing seconds, I'd
be glad to know.

Also if you can advise on any obvious way of reducing the memory
footprint, that'd be handy too.

Drew



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to