]> git.ipfire.org Git - pakfire.git/commitdiff
pakfire_format_time(): Fix typo
authorStefan Schantl <stefan.schantl@ipfire.org>
Tue, 21 Mar 2023 10:14:13 +0000 (11:14 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 22 Mar 2023 09:31:35 +0000 (09:31 +0000)
Fix a small typo when displaying the build time
which is longer than 1 hour.

In such a case the following message got displayed:

Build successfully completed in 01m07m02s

Which should be 01h07m02s

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/string.c

index 8eaf8d91f6520786b1ea76af6604d81a62edc1ed..931ba701dde8db94cc35213ac927f2f537265319 100644 (file)
@@ -394,7 +394,7 @@ int __pakfire_format_time(char* buffer, const size_t length, const time_t t) {
        if (t >= 86400)
                format = "%dd%Hh%Mm";
        else if (t >= 3600)
-               format = "%Hm%Mm%Ss";
+               format = "%Hh%Mm%Ss";
        else if (t >= 60)
                format = "%Mm%Ss";
        else