pomo

A simple pomodoro timer
Log | Files | Refs | README | LICENSE

commit aa718fd83ad84e357a1235b7bd037385dcdc23ff
parent 8be5483b6abb050988eb930863761bfd3ad50c51
Author: Ivan Tham <pickfire@riseup.net>
Date:   Fri,  5 Aug 2016 17:54:38 +0800

Fix logic for i infinal loop

thanks to this I had learned about dprintf and breakpoints

Diffstat:
Mspt.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/spt.c b/spt.c @@ -135,7 +135,7 @@ run: for (timecount = 0; timecount < timers[i].tmr; timecount += inc) sleep(1); - i = (i < LEN(timers)) ? i+1 : 0; /* i infinal loop */ + if (++i >= LEN(timers)) i = 0; /* i infinal loop */ goto run; return 0;