]> Dogcows Code - chaz/tint2/blobdiff - src/clock/clock.c
fixed issue 71 time format
[chaz/tint2] / src / clock / clock.c
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;
This page took 0.020973 seconds and 4 git commands to generate.