aboutsummaryrefslogtreecommitdiff
path: root/beefsteak.c
diff options
context:
space:
mode:
Diffstat (limited to 'beefsteak.c')
-rw-r--r--beefsteak.c6
1 files changed, 3 insertions, 3 deletions
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: ");