From feb53033f4ea43f51d122e256cca1672710ba1e2 Mon Sep 17 00:00:00 2001 From: foswret Date: Tue, 9 Sep 2025 21:05:48 -0500 Subject: Sessions actually work now --- beefsteak.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'beefsteak.c') diff --git a/beefsteak.c b/beefsteak.c index 7e05d83..8be2100 100644 --- a/beefsteak.c +++ b/beefsteak.c @@ -15,8 +15,6 @@ /* 60 SECONDS = 1 MINUTE */ /* 60 MINUTES = 1 HOUR, 3600 SECONDS */ -int work_time_seconds = WORK_TIME_MIN * 60; -int break_time_seconds = BREAK_TIME_MIN * 60; int clear_stream(void) { fflush(stdout); @@ -60,7 +58,7 @@ int send_notification(int type) { system(command); break; case 2: /* Session Ended*/ - sprintf(message, "\"🕰️ Pomodoro Session Started\" \"All Done.\""); + sprintf(message, "\"🕰️ Pomodoro Session Complete\" \"All Done.\""); strcat(command, message); system(command); break; @@ -70,6 +68,8 @@ int send_notification(int type) { int main(int argc, char **argv) { for (int i = 0; i < SESSION_COUNT; i++) { + int work_time_seconds = WORK_TIME_MIN * 60; + int break_time_seconds = BREAK_TIME_MIN * 60; send_notification(0); while (work_time_seconds > 0) { printf("Work Time Left: "); -- cgit v1.2.3