summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <curtis.mcenroe@adgear.com>2017-01-19 17:33:40 -0500
committerJune McEnroe <curtis.mcenroe@adgear.com>2017-01-19 17:33:40 -0500
commitafc45f7ba5d10eb916e1346d3e15c68e7de9aaa4 (patch)
tree5c19b41ee90868f26bb91742073d02cc2779416f
parentDisplay fuzzy clock in tmux (diff)
downloadsrc-afc45f7ba5d10eb916e1346d3e15c68e7de9aaa4.tar.gz
src-afc45f7ba5d10eb916e1346d3e15c68e7de9aaa4.zip
Revert "Show one digit of each hour in clock"
This reverts commit dbe688285900b81c7e46ab7a6f74ecdfefa2856a.
-rwxr-xr-x.bin/clock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/.bin/clock.c b/.bin/clock.c
index 69d33dae..9eb4dc23 100755
--- a/.bin/clock.c
+++ b/.bin/clock.c
@@ -18,7 +18,7 @@ int main() {
         case 0: printf("...%02d...\n", clock->tm_hour); break;
         case 1: printf("..%02d....\n", clock->tm_hour); break;
         case 2: printf(".%02d.....\n", clock->tm_hour); break;
-        case 3: printf("%d......%d\n", clock->tm_hour % 10, (clock->tm_hour + 1) / 10); break;
+        case 3: printf("%02d....%02d\n", clock->tm_hour, clock->tm_hour + 1); break;
         case 4: printf(".....%02d.\n", clock->tm_hour + 1); break;
         case 5: printf("....%02d..\n", clock->tm_hour + 1); break;
         case 6: printf("...%02d...\n", clock->tm_hour + 1); break;