]> Dogcows Code - chaz/tint2/commitdiff
fixed issue 71 time format
authorThierry Lorthiois <lorthiois@bbsoft.fr>
Sun, 31 May 2009 21:20:58 +0000 (21:20 +0000)
committerThierry Lorthiois <lorthiois@bbsoft.fr>
Sun, 31 May 2009 21:20:58 +0000 (21:20 +0000)
ChangeLog
src/clock/clock.c
src/tint2

index e3ae6e40758853e589085247b2e1e2a097f21084..a492b17f68acf1aecad5704703b37f37b1766c8d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2009-05-31
+- fixed issue 71 : time format %T %r
+
 2009-05-31
 - fixed issue 86 : padding bug
 
index 288ed942e601181bdb2792fe7fe9f7889c4ea32f..79104c0d0df4adbf54207b8f25cac7aba6c66502 100644 (file)
@@ -58,8 +58,10 @@ void init_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;
index 94f1e1f8b7921fe9e3d82821613624847717d391..9e81143f426dd2a3be37713d0205530502e8c400 100755 (executable)
Binary files a/src/tint2 and b/src/tint2 differ
This page took 0.030472 seconds and 4 git commands to generate.