From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id iKZBOnuJzmOmDQAAbAwnHQ (envelope-from ) for ; Mon, 23 Jan 2023 14:19:56 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id GDISOnuJzmM8BAEAauVa8A (envelope-from ) for ; Mon, 23 Jan 2023 14:19:55 +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 CCC76ECF8 for ; Mon, 23 Jan 2023 14:19:55 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pJwSf-0003AC-OD; Mon, 23 Jan 2023 08:02:09 -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 1pJwSZ-00031l-Ps for bug-guix@gnu.org; Mon, 23 Jan 2023 08:02:04 -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 1pJwSZ-0003ph-GY for bug-guix@gnu.org; Mon, 23 Jan 2023 08:02:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pJwSZ-00068k-Bi for bug-guix@gnu.org; Mon, 23 Jan 2023 08:02:03 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#58880: [PATCH v2 1/2] guix gc: Round MiBs in user feedback. Resent-From: Remco van 't Veer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 23 Jan 2023 13:02:03 +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.167447891823569 (code B ref 58880); Mon, 23 Jan 2023 13:02:03 +0000 Received: (at 58880) by debbugs.gnu.org; 23 Jan 2023 13:01:58 +0000 Received: from localhost ([127.0.0.1]:53591 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pJwSS-00067t-Sw for submit@debbugs.gnu.org; Mon, 23 Jan 2023 08:01:58 -0500 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:38029) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pJwSQ-00067R-AB for 58880@debbugs.gnu.org; Mon, 23 Jan 2023 08:01:54 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 43D7F5C0135; Mon, 23 Jan 2023 08:01:49 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Mon, 23 Jan 2023 08:01:49 -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 :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm2; t=1674478909; x=1674565309; bh=JW 8ALIjUc2SMEbDsSZaHPkS4W0taQ+74AFrW7Y7BvPM=; b=jqqb40ZesoGhuvJcjP qpz2tqOx0K2+tNoPKihvLr7EdfSLPPhP7IDCpqhxIRu5xGOJk6RSb2AkoJB9T2xu UNnhF9rqOwbsYhRZ1/H5GPWnC1kxyHHB7EdFlzAdqPc0tE4/EnfHx7FgaC2B/PnR hSTlp6fW2slEJmX4S5T1tIOqeF4GW3q3jYehGObClHrbUzCVEHmIOZwN24QhnNf/ 5rXjqh6mRWbfAsepNcXYgRXs8DgQqjRbePTA1e0h1fbmphNbdEq/XIXwu5PMWcF/ kPQK5prGsiMPCFDNWxdPOK55tVRvysknkMf8SG+V6Np1tfVVRLDbyiQVn+++tk0o GWzA== 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:in-reply-to :message-id:mime-version:references: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=1674478909; x=1674565309; bh=JW8ALIjUc2SME bDsSZaHPkS4W0taQ+74AFrW7Y7BvPM=; b=hVDO8bIIbMxPjpXPS/NYBIZ/kvVyn 3Tm3oRGbdwk7ReZQFHSjULOMnTmtaGL9lI8xtMpwqWNMQfKSotTus/jSUsiyfT/X o7spG9u64JKODvv59dwzYssXn/xprKiScKV2rXHq/Guf4ORgePcRJCZezcoh08ds BnJ6zt+sO58rv9EQT5UAZQ7UQ9hWi6/Crw7d8BBni3dzM1tTmzZu47al9IprMFQI 1tLVZiVMl41sfDKOV4G1rUTJgmoq9NniQ9FIKxuvuOhQa+nR41yt6O3WVkze++Ag osZFrmde4lm2hso7xQdBkKVqElxKhDUYSpyQ+iKrg1mogChE5DFACXriQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedruddukedgfeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkofgjfhgggfestdekredtredttdenucfhrhhomheptfgvmhgt ohcuvhgrnhcukdhtucggvggvrhcuoehrvghmtghosehrvghmfihorhhkshdrnhgvtheqne cuggftrfgrthhtvghrnhepteegudelgfffvedtfeehjefhgeeijeeiudeugfevhfduuedt teevudehgfffffdvnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomheprhifvhesfhgrshhtmhgrihhlrdgtohhm X-ME-Proxy: Feedback-ID: i568842cc:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 23 Jan 2023 08:01:48 -0500 (EST) From: Remco van 't Veer Date: Mon, 23 Jan 2023 14:01:25 +0100 Message-Id: <20230123130126.19745-2-remco@remworks.net> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230123130126.19745-1-remco@remworks.net> References: <20230123130126.19745-1-remco@remworks.net> 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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1674479995; 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=C/Pg5B76VbEMLJPoqtg1u4YsDGzMxT93OsXCad9afBta1k8JuJIePTWnH+QLVvwhNSSJIi GrRdWzx8dMBySGyImhfBFKMf0s2wcBmQW3aOU9laTtOqKFzlhjXCTG8BZOpsgXUYNsCBl2 UT1qkpPa2TGPdn8CThPpgh2llsDV0IksmHxBv9d6Qkb+jH+zHi8RGm15PuCvsTfVQxZTzr rSsR7ztyfZXbtNV0wHbgKnxKs9+6z3J3JnzvsqLInFhZQ2Pw7GWkh6lBU6v1RwRpXIdhw5 IkgSMYPmxxDLEkghbvfuanucHkTrWA0QI75Fs2GBZLn45YChHJOGcMej258qwg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=remworks.net header.s=fm2 header.b=jqqb40Ze; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm3 header.b=hVDO8bII; dmarc=none; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1674479995; a=rsa-sha256; cv=none; b=a6JfESsN6akewHMQNj//JZvqYuhGZyuvpvj1tzyjlR+iN1EIAEEJRtbv014nDOnUxVIdkQ NuxqkRDmkNCl1VzqX6pGtaPKxuZFPwU68oJ2XFLMsUCo3dn0ySYcpKDKDknr6gIzY73WiA p0yovSu+JSwMYRJiaDEiaXZGakIJm6D94NYPMqRM+HtHXpo8WKHe5jrgUvCGQrjMVYujV1 9fJQnHo6McSJbnhJlBFuBa/y5DzZHw6jyWcHDyikUPepS6ldpFz5qWvKh+Ws+7Jnvqpy9E gmkF5ZHwskRbNcE/yVgkeqSSXLkBtXqya5MadYFORDpv7p2nPtdAkEJpcUuqAg== Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=remworks.net header.s=fm2 header.b=jqqb40Ze; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm3 header.b=hVDO8bII; dmarc=none; 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" X-Migadu-Spam-Score: 0.82 X-Spam-Score: 0.82 X-Migadu-Queue-Id: CCC76ECF8 X-Migadu-Scanner: scn1.migadu.com X-TUID: t+W8wow3v140 * 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