public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
From: Stefan Schantl <stefan.schantl@ipfire.org>
To: development@lists.ipfire.org
Subject: [PATCH] pakfire_format_time(): Fix typo
Date: Tue, 21 Mar 2023 11:14:13 +0100	[thread overview]
Message-ID: <20230321101413.1592037-1-stefan.schantl@ipfire.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 805 bytes --]

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(a)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
-- 
2.30.2


             reply	other threads:[~2023-03-21 10:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-21 10:14 Stefan Schantl [this message]
2023-03-22 16:38 ` Bernhard Bitsch

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230321101413.1592037-1-stefan.schantl@ipfire.org \
    --to=stefan.schantl@ipfire.org \
    --cc=development@lists.ipfire.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox