From 43853679ef3f34e76ea6eca7c4edd96a48b296df Mon Sep 17 00:00:00 2001 From: Jan200101 Date: Thu, 26 Oct 2023 08:30:44 +0200 Subject: include seconds when hours or minutes are displayed --- src/ui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui.c b/src/ui.c index c83304b..1499b2d 100644 --- a/src/ui.c +++ b/src/ui.c @@ -450,7 +450,7 @@ void strdifftime(time_t time1, time_t time0, char* str, size_t size) if (minutes) snprintf(str+strlen(str), size, "%i minutes ", minutes); - if (seconds) + if (hours || minutes || seconds) snprintf(str+strlen(str), size, "%i seconds ", seconds); } } \ No newline at end of file -- cgit v1.2.3