From e42edd7ccc8339871050e5331a8a48ecf318706e Mon Sep 17 00:00:00 2001 From: ollo Date: Wed, 4 Jan 2017 21:54:54 +0100 Subject: [PATCH] Twenty minutes before is used --- wordclock.lua | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/wordclock.lua b/wordclock.lua index ad41e99..b2adaf1 100755 --- a/wordclock.lua +++ b/wordclock.lua @@ -58,9 +58,8 @@ function display_timestat(hours, minutes, longmode) ret.half=1 ret.after=1 elseif (minutes==8) then - ret.tenMin=1 - ret.half=1 - ret.after=1 + ret.twenty=1 + ret.before=1 elseif (minutes==9) then ret.threequater=1 elseif (minutes==10) then @@ -71,7 +70,7 @@ function display_timestat(hours, minutes, longmode) ret.before=1 end - if (minutes >= 4) then + if (minutes > 4) then hours=hours+1 end else