fixed issue 71 time format git-svn-id: http://tint2.googlecode.com/svn/trunk@82 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
lorthiois@bbsoft.fr lorthiois@bbsoft.fr@121b4492-b84c-0410-8b4c-0d4edfb3f3cc
3 files changed,
7 insertions(+),
2 deletions(-)
M
src/clock/clock.c
→
src/clock/clock.c
@@ -58,8 +58,10 @@ clock->area._resize = resize_clock;
if (!clock->area.on_screen) continue; - if (strchr(time1_format, 'S') == NULL) time_precision = 60; - else time_precision = 1; + if (strchr(time1_format, 'S')) time_precision = 1; + else if (strchr(time1_format, 'T')) time_precision = 1; + else if (strchr(time1_format, 'r')) time_precision = 1; + else time_precision = 60; // update clock to force update (-time_precision) struct timeval stv;