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 --- src/libpakfire/string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/libpakfire/string.c b/src/libpakfire/string.c index 8eaf8d91..931ba701 100644 --- a/src/libpakfire/string.c +++ b/src/libpakfire/string.c @@ -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
Reviewed-by: Bernhard Bitsc bbitsch@ipfire.org
Am 21.03.2023 um 11:14 schrieb Stefan Schantl:
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
src/libpakfire/string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/libpakfire/string.c b/src/libpakfire/string.c index 8eaf8d91..931ba701 100644 --- a/src/libpakfire/string.c +++ b/src/libpakfire/string.c @@ -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";
else if (t >= 60) format = "%Mm%Ss"; elseformat = "%Hh%Mm%Ss";