From 7a2d8a9538c1eb6df4dd305a20aa42ee11b2edeb Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Fri, 20 Jan 2017 00:06:28 -0500 Subject: Modulo next hour by 24 in clock --- .bin/clock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bin/clock.c b/.bin/clock.c index 9fcd5ac9..d513fe75 100755 --- a/.bin/clock.c +++ b/.bin/clock.c @@ -15,7 +15,7 @@ int main() { if (!clock) err(EX_OSERR, "localtime"); int hour = clock->tm_hour; - int next = clock->tm_hour + 1; + int next = (hour + 1) % 24; switch ((clock->tm_min + 3) / 6) { case 0: printf("....%02d....\n", hour); break; -- cgit 1.4.1 tion value='eb945e6a563ed5d245d5a37675936a6f95a5f8e9'>this commit IRC logger
summary refs log tree commit diff
path: root/unscoop.c (unfollow)
Commit message (Expand)Author
2019-12-31Add missing includeJune McEnroe
2019-12-31Use standout mode for highlightingJune McEnroe
2019-12-31Rewrite scoop(1) argument descriptionsJune McEnroe
2019-12-31Color both nicks in a changeJune McEnroe
2019-12-31Implement nick-colored outputJune McEnroe
2019-12-31Only enable highlighting on terminal outputJune McEnroe
2019-12-31Set up pager pipeJune McEnroe
2019-12-30Normalize date inputJune McEnroe
2019-12-30Add initial rough version of scoopJune McEnroe
2019-12-30Join with USING wherever possibleJune McEnroe
2019-12-30Add -D flag to prospective scoop manualJune McEnroe
2019-12-30Order results by ID in outer query in litterboxJune McEnroe
2019-12-30Use X macro for Type enumJune McEnroe
2019-12-30Remove scoop -ABCJune McEnroe
2019-12-30Add limit option for litterbox's search query interfaceJune McEnroe