From f8245cef5838ff6dc978143a89345048665b9738 Mon Sep 17 00:00:00 2001 From: randomuser Date: Fri, 11 Jun 2021 00:59:40 -0500 Subject: [PATCH] add hour argument --- progs/timer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/progs/timer.c b/progs/timer.c index be76125..676a4a8 100644 --- a/progs/timer.c +++ b/progs/timer.c @@ -87,6 +87,7 @@ int main(int argc, char **argv) { break; case 'd': s.d = 1; break; case 'b': s.b = 1; break; case 'f': s.f = 1; + break; case 'h': s.s = s.s + (atoi(optarg) * 3600); break; case 'm': s.s = s.s + (atoi(optarg) * 60); break; case 's': s.s = s.s + atoi(optarg); break; case '?': return 1;