From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id mJC1F23PzmPlYAAAbAwnHQ (envelope-from ) for ; Mon, 23 Jan 2023 19:18:21 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id iMV8F23PzmNxeQEA9RJhRA (envelope-from ) for ; Mon, 23 Jan 2023 19:18:21 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 22F371A2DA for ; Mon, 23 Jan 2023 19:18:21 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pK1OO-0006hU-IY; Mon, 23 Jan 2023 13:18:04 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pK1OM-0006hJ-VG for bug-guix@gnu.org; Mon, 23 Jan 2023 13:18:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pK1OM-0005dO-ND for bug-guix@gnu.org; Mon, 23 Jan 2023 13:18:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pK1OM-0000Mq-JD for bug-guix@gnu.org; Mon, 23 Jan 2023 13:18:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#58880: [PATCH v3 1/2] guix gc: Round MiBs in user feedback. References: <5z3zneF8G6Y-8ua-MISE2H5Kth7yWekIe_gGm8a9F35IewpTkm_rscQL5eIP0tKeUJM7LGsNWlELU0DON2pYG5EfMkQoyXM5cA8NRVZRy8k=@proton.me> In-Reply-To: <5z3zneF8G6Y-8ua-MISE2H5Kth7yWekIe_gGm8a9F35IewpTkm_rscQL5eIP0tKeUJM7LGsNWlELU0DON2pYG5EfMkQoyXM5cA8NRVZRy8k=@proton.me> Resent-From: Remco van 't Veer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 23 Jan 2023 18:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58880 X-GNU-PR-Package: guix X-GNU-PR-Keywords: patch easy To: zimoun Cc: Julien Lepiller , 58880@debbugs.gnu.org, Remco van 't Veer Received: via spool by 58880-submit@debbugs.gnu.org id=B58880.16744978461347 (code B ref 58880); Mon, 23 Jan 2023 18:18:02 +0000 Received: (at 58880) by debbugs.gnu.org; 23 Jan 2023 18:17:26 +0000 Received: from localhost ([127.0.0.1]:55311 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pK1Nm-0000Ld-D0 for submit@debbugs.gnu.org; Mon, 23 Jan 2023 13:17:26 -0500 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:44015) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pK1Nk-0000LP-LT for 58880@debbugs.gnu.org; Mon, 23 Jan 2023 13:17:25 -0500 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 975FD5C021A; Mon, 23 Jan 2023 13:17:19 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Mon, 23 Jan 2023 13:17:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=remworks.net; h= cc:cc:content-transfer-encoding:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:sender:subject:subject:to:to; s=fm2; t=1674497839; x=1674584239; bh=JW8ALIjUc2SMEbDsSZaHPkS4W 0taQ+74AFrW7Y7BvPM=; b=esrgA97WeVv6KcEJ9iSvga7oU0s8gl5g7F1/nqE12 gxtKjnn8XZ3UrTt9fJsTkYaMMgviEA/iv0kz/Mkv0n9MKyjgIvokQ0fXGsC95TjU bYfE3qX7j45hnrGwZoPUbaWHIPrLzpRZDXO26juzCJzSrHkwAXmbKHchPXENv37j YS4Taks/HYOP8/hd/YrbyrYA9E+yk0tT0bdFnwzJe8CG77ObMiLvQK6ZKo3P/U2a /6FQJvA9VJQ9aIDP4pjEinmTJUK/0dRsayL4JkcLpgcR3orqDyFQZNePf7US/jdE L6yUbEgm7RpIHH+b5UOEXaoEupfePWLjkocQ0FDMayd1w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1674497839; x=1674584239; bh=JW8ALIjUc2SMEbDsSZaHPkS4W0taQ+74AFr W7Y7BvPM=; b=JNrc8xWeJiXxCk4fGAR8teG07EduwSD8y8IyTjIB1ftsy8GUlT0 O01N8prdNbj1mtUVgvWyFhP/9dS632dbXXe5xW/t/AKBiy8TJQW6CQkNb87zC8fh vL+W6uare0AbNllh/+UuyksZsEkrb868kjMTbrRgSEOus0/hXtmBdpwqHwTC1Chn on7zRiDm8dpYQianZt6YibfE518lgoYoAlVGGH5L322462zSLnUJ7Z7pow0wLZoq T7+wcbpttDmt6/G/ADqak67hy45RO4zcbfU46wqebnceG6+ukKf5064QRlNP+4Bc 2E+VjkTSKXN3ViZbR4KdgbH3ejpCBKSQjXg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedruddukedgleelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkofgggfestdekredtredttdenucfhrhhomheptfgvmhgtohcu vhgrnhcukdhtucggvggvrhcuoehrvghmtghosehrvghmfihorhhkshdrnhgvtheqnecugg ftrfgrthhtvghrnhepgeeugefgtdehffehtdeijeduudfggfdtvdeufeettdeuhfdtffej leegfedvteeinecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh homheprhifvhesfhgrshhtmhgrihhlrdgtohhm X-ME-Proxy: Feedback-ID: i568842cc:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 23 Jan 2023 13:17:18 -0500 (EST) From: Remco van 't Veer Date: Mon, 23 Jan 2023 19:17:14 +0100 Message-Id: <20230123181715.30822-1-remco@remworks.net> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=remworks.net header.s=fm2 header.b=esrgA97W; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm3 header.b=JNrc8xWe; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1674497901; a=rsa-sha256; cv=none; b=f7QJ2mH3C7wr1Ir0DAfXryAXfacLWGqsFySSC3xopXCfqO3wnNGelBN4GGXP+rJJpt+nqq mr4wZz+7VV+DF0x2fY+9BtqiOcTgM42yxRUPWFpMgxTBBnEcltZW2rlJu6ovLXyeINaOII kWcNqeZ8UI7dZZPA56dTURP9Cxz2Wfbta2zFkz0Hy9kS1CVRI3lawN1xzjorhRnHSb4Iar TPg1reZ0JreaPimal/idvcHV9xgQ8Ht1uSWv7leOmALyd25ByHuLTUPtAQ31vvv4Hg0YeO RQQijqHtFAFwYXEMoTrNttvJwNbHyohKn+cv/K7pu6yO8bRM8Sdu4kxmMxolfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1674497901; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=JW8ALIjUc2SMEbDsSZaHPkS4W0taQ+74AFrW7Y7BvPM=; b=BZw3IVlFiVIJT9TJtImVWEHrs+APJDx6zUO/VnLJsWiiWBkreZzfhUY5bHlnMWerCHQMIV bGOez4QLbH1THyDQPEXrhzhqGOopu0g0dJgOG5igGBbYG2qBe5m+PJJLabdtsSCCemaXsW rKkxcCp9qHVlLg6d88wVzrXOUju0TNOPfxc7Dt9j+afuK6qLsgYceN3LfKukKXRg6aXFD+ LcYFB6wKK0ToQ8tp9U+MdGadji6OJo7Oe6ss0cSr1rDVjB+3dNo9pZ4NVG88v7K8JGfdDi jXqFVJvCegWfUIMUH3JfnrYCRi0tYQFETumy4AhKU8+TXW8npRCGcRr/N7D6tQ== X-Spam-Score: -0.29 X-Migadu-Queue-Id: 22F371A2DA X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=remworks.net header.s=fm2 header.b=esrgA97W; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm3 header.b=JNrc8xWe; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=none X-Migadu-Spam-Score: -0.29 X-TUID: n6Oc4T4CuORT * guix/scripts/gc.scm (guix-gc): Round MiBs in user feedback. --- guix/scripts/gc.scm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/guix/scripts/gc.scm b/guix/scripts/gc.scm index 5e775c5cdb..2bbfb26d5d 100644 --- a/guix/scripts/gc.scm +++ b/guix/scripts/gc.scm @@ -260,10 +260,10 @@ (define-command (guix-gc . args) ;; Attempt to have at least SPACE bytes available in STORE. (let ((free (free-disk-space (%store-prefix)))) (if (> free space) - (info (G_ "already ~h MiBs available on ~a, nothing to do~%") + (info (G_ "already ~,2h MiBs available on ~a, nothing to do~%") (/ free 1024. 1024.) (%store-prefix)) (let ((to-free (- space free))) - (info (G_ "freeing ~h MiBs~%") (/ to-free 1024. 1024.)) + (info (G_ "freeing ~,2h MiBs~%") (/ to-free 1024. 1024.)) (collect-garbage store to-free))))) (define (delete-generations store pattern) @@ -327,10 +327,10 @@ (define-command (guix-gc . args) (ensure-free-space store free-space)) (min-freed (let-values (((paths freed) (collect-garbage store min-freed))) - (info (G_ "freed ~h MiBs~%") (/ freed 1024. 1024.)))) + (info (G_ "freed ~,2h MiBs~%") (/ freed 1024. 1024.)))) (else (let-values (((paths freed) (collect-garbage store))) - (info (G_ "freed ~h MiBs~%") (/ freed 1024. 1024.))))))) + (info (G_ "freed ~,2h MiBs~%") (/ freed 1024. 1024.))))))) ((list-roots) (assert-no-extra-arguments) (list-roots)) -- 2.39.1