From patchwork Tue Mar 21 10:14:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Schantl X-Patchwork-Id: 6715 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4PgnX215ZFz3x6w for ; Tue, 21 Mar 2023 10:14:26 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4PgnX01SchzPV; Tue, 21 Mar 2023 10:14:24 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4PgnWz6xXgz307D; Tue, 21 Mar 2023 10:14:23 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4PgnWy2Ggxz2y2l for ; Tue, 21 Mar 2023 10:14:22 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4PgnWx1fsYzFQ; Tue, 21 Mar 2023 10:14:21 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1679393661; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=S5JpWfa4E1gCIMgTWGLo0f4wNFu/elOJI/CdmEeu+PA=; b=dkMHKIax78VnE9CPnIJasQQT1Kzqi4cta237rcxHPFS8sb0nqvTi9dmRoNm5llfgn2OZ9r feaU1CsICo7ERIDg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1679393661; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=S5JpWfa4E1gCIMgTWGLo0f4wNFu/elOJI/CdmEeu+PA=; b=VDltNn0wNz/YBxfacx7jrpSY0bc4ZwwfLZcUgACnjO0pSdilvI6bRfIslrkL4aA37n51Jx 4LnC6CBxe/gg47XGP76Yy6gAY1QM7EzJ0pGA74b0y8JJyZktdhfJnG0DDUOklB9rWG6TXK xfR+1W1D6pTtmkkPk9ss2Za/bvcenbVwKwesYwolIyZdm9lZQ1kgFSQXyiy875DtfpM8z/ ayTbknaFuNfxJzNJ4a1I1nJESU4jozRzpVtWGQFUAKFs/qGfIPY2I2A7WcSnWnoPfvUDEJ Un5UzjuX8BKPkrxWTx/TotFVBnBcmM34ALjHPo2s2zjsODQ1EX7wkVorCZPc2A== From: Stefan Schantl To: development@lists.ipfire.org Subject: [PATCH] pakfire_format_time(): Fix typo Date: Tue, 21 Mar 2023 11:14:13 +0100 Message-Id: <20230321101413.1592037-1-stefan.schantl@ipfire.org> MIME-Version: 1.0 X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: development-bounces@lists.ipfire.org Sender: "Development" 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 Reviewed-by: Bernhard Bitsc --- 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