From d7e0fc8a474a76024494225952654cd1d23880fc Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Sat, 30 Sep 2023 09:33:38 +0200 Subject: [PATCH] all talks: only show 'in xxx min' for talks less than 30min in the future --- tile.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tile.lua b/tile.lua index 9205b5f..1091840 100644 --- a/tile.lua +++ b/tile.lua @@ -266,7 +266,7 @@ local function view_all_talks(starts, ends, config, x1, y1, x2, y2) local delta = talk.start_ts - time if delta > -60 and delta < 60 then talk_time = "Now" - elseif delta > 180*60 then + elseif delta > 30*60 then talk_time = talk.start_str elseif delta > 0 then talk_time = string.format("in %d min", math.floor(delta/60)+1)