diff options
author | Jan200101 <sentrycraft123@gmail.com> | 2023-10-26 08:30:44 +0200 |
---|---|---|
committer | Jan200101 <sentrycraft123@gmail.com> | 2023-10-26 08:30:44 +0200 |
commit | 43853679ef3f34e76ea6eca7c4edd96a48b296df (patch) | |
tree | 8beeddcc5e3de5400c32892dbe4ed14ab08bb47e /src | |
parent | bdca81b4f667bdeac2fd77b87ba19de868f7fe5e (diff) | |
download | cgci-43853679ef3f34e76ea6eca7c4edd96a48b296df.tar.gz cgci-43853679ef3f34e76ea6eca7c4edd96a48b296df.zip |
include seconds when hours or minutes are displayed
Diffstat (limited to 'src')
-rw-r--r-- | src/ui.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |