aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJan200101 <sentrycraft123@gmail.com>2023-10-26 08:30:44 +0200
committerJan200101 <sentrycraft123@gmail.com>2023-10-26 08:30:44 +0200
commit43853679ef3f34e76ea6eca7c4edd96a48b296df (patch)
tree8beeddcc5e3de5400c32892dbe4ed14ab08bb47e /src
parentbdca81b4f667bdeac2fd77b87ba19de868f7fe5e (diff)
downloadcgci-43853679ef3f34e76ea6eca7c4edd96a48b296df.tar.gz
cgci-43853679ef3f34e76ea6eca7c4edd96a48b296df.zip
include seconds when hours or minutes are displayed
Diffstat (limited to 'src')
-rw-r--r--src/ui.c2
1 files changed, 1 insertions, 1 deletions
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