tag 572227 +patch thanks Hi,
On Tue, Mar 2, 2010 at 6:26 AM, Adam Lee <adam8...@gmail.com> wrote:
Package: tint2 Version: 0.9-1 Severity: important When clock shows only hour and minutes, it updates every 60 seconds, It make time differs from date command output for ~1 minute. I know add seconds can prevent it, but it is a BUG. Actually it made loss to me.
Well, the fix is obvious, for a 30 second update, e.g.: diff --git a/src/clock/clock.c b/src/clock/clock.c index 82964a6..e912e01 100644 --- a/src/clock/clock.c +++ b/src/clock/clock.c @@ -89,7 +89,7 @@ void init_clock() if (strchr(time1_format, 'S') || strchr(time1_format, 'T') || st clock_timeout = add_timeout(10, 1000, update_clocks, 0); else - clock_timeout = add_timeout(10, 60000, update_clocks, 0) + clock_timeout = add_timeout(10, 30000, update_clocks, 0) } } However, I'm not sure if there's a better update interval. You say this caused you to lose something, but obviously, you shouldn't be relying on a system tray clock set to minutes if you need accuracy to the minute. I'll bring it up with upstream, but I'm giving you warning--the update time will definitely not be set to much faster than 30 seconds, if faster. That's just a waste. Regards, Daniel -- Daniel Moerner <dmoer...@gmail.com>
signature.asc
Description: OpenPGP digital signature