diff options
author | June McEnroe <june@causal.agency> | 2017-01-19 17:33:40 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2017-01-19 17:33:40 -0500 |
commit | eed53eba88648da90f33f5522380b1145e4db066 (patch) | |
tree | a9a6ddfcc3b989cabc6463414911382072ff0191 | |
parent | Display fuzzy clock in tmux (diff) | |
download | src-eed53eba88648da90f33f5522380b1145e4db066.tar.gz src-eed53eba88648da90f33f5522380b1145e4db066.zip |
Revert "Show one digit of each hour in clock"
This reverts commit a3555612b6814bdfce0cbc6110891e61252d3980.
-rwxr-xr-x | .bin/clock.c | 2 |
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; |