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 ODKoOPYSzGMNGwEAbAwnHQ (envelope-from ) for ; Sat, 21 Jan 2023 17:29:43 +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 AKN0OPYSzGNDRAAAauVa8A (envelope-from ) for ; Sat, 21 Jan 2023 17:29:42 +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 ACD3E1038F for ; Sat, 21 Jan 2023 17:29:42 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pJGjq-0003tV-Fi; Sat, 21 Jan 2023 11:29:06 -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 1pJGjo-0003rj-53 for bug-guix@gnu.org; Sat, 21 Jan 2023 11:29: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 1pJGjn-0007Er-RW for bug-guix@gnu.org; Sat, 21 Jan 2023 11:29:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pJGjn-0005fD-Mx for bug-guix@gnu.org; Sat, 21 Jan 2023 11:29:03 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#58880: 'guix gc' does not round the amount of disk space freed Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 21 Jan 2023 16:29: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: easy To: Remco van 't Veer Cc: 58880@debbugs.gnu.org, Julien Lepiller Received: via spool by 58880-submit@debbugs.gnu.org id=B58880.167431850121698 (code B ref 58880); Sat, 21 Jan 2023 16:29:03 +0000 Received: (at 58880) by debbugs.gnu.org; 21 Jan 2023 16:28:21 +0000 Received: from localhost ([127.0.0.1]:49646 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pJGj7-0005do-0X for submit@debbugs.gnu.org; Sat, 21 Jan 2023 11:28:21 -0500 Received: from mail-wm1-f50.google.com ([209.85.128.50]:45794) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pJGj2-0005cs-PQ for 58880@debbugs.gnu.org; Sat, 21 Jan 2023 11:28:17 -0500 Received: by mail-wm1-f50.google.com with SMTP id o17-20020a05600c511100b003db021ef437so5705348wms.4 for <58880@debbugs.gnu.org>; Sat, 21 Jan 2023 08:28:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=SuGAzClei0nrqwPQQ6S4mHb7xRwElmilOfjHg8YbVxo=; b=A17N8r3enmCgYJGaDb4aOgwlMLV/fGcqC1ca9xs8W92MW3O6wUmVF0tFSYauE8leEs /juBjKueS5R7kgDX9LKCUoiDqZCATac7fg2LJUL2w+EnTPTH1J0Msp3htr946FuU6QfR e4rwIX3Ht6VCzJ3Kn2sbBDVQ3feITsd8u0OEr775Z3zBFyXVpAd5GXPdz9lrGUhgyj1q i+/uVlz7w1ntBtGojMmXEysVzwBujuWx1J5qCRqFLw+P5/r6MNPaL51NPLqqav7h0ihJ Thw7RuKkNrYPwQqD3XSCUJ11CWrIcZAFs4y24wOFn0ouxkLj92qZ9DS4KxRGo+YGvNF+ QoMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=SuGAzClei0nrqwPQQ6S4mHb7xRwElmilOfjHg8YbVxo=; b=06XLFsvwQqbvzt7G7ycgj3oOxCaM2BpjrL5kf7zzPB9r2uB7usAwv2+fiHalXMBzHX JgRMDJgiZjkJNu64keCG6F7YFnbawvrtL9TZzh9E5XQsvqnuLS6KwKvdtsVwiDs7BKEW y3yd8KSeveC4ZGj3N7CWM7Z7qgfpMV1ClfCDLBiRcUpdIh8WDgmnLK/sPkNlLQbf47b8 QhDJUMrB9eZv6ks+c0ku1udqT6qQ9Pm022LUGZSiGjHbJ8Jj9G7SoP/F3s38GrkLSpEy EbghJBHiOLXO+1ema4mXlGzVekj8bHCSPIw9m9wDa8TgG3/6WER54qY0fzbhE73R15P8 5K8g== X-Gm-Message-State: AFqh2kr+ubXI5y4IkXwITuUrAU7ujgyvVhQb1au/D+4v11eTUmJ7ABuo u0Vf4U/gXVCvyd9FX0qC19ZNo2b6AxI= X-Google-Smtp-Source: AMrXdXt8tcJ05Xy5XHv4gB5tSnparQhTMVZVxU9odM2dglE/sb5/hkUTUEddz6hDUwtOcawYx67acg== X-Received: by 2002:a05:600c:1c83:b0:3da:fe74:51ff with SMTP id k3-20020a05600c1c8300b003dafe7451ffmr4020527wms.2.1674318491184; Sat, 21 Jan 2023 08:28:11 -0800 (PST) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id 5-20020a05600c230500b003d04e4ed873sm5504787wmo.22.2023.01.21.08.28.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Jan 2023 08:28:10 -0800 (PST) From: zimoun References: <5z3zneF8G6Y-8ua-MISE2H5Kth7yWekIe_gGm8a9F35IewpTkm_rscQL5eIP0tKeUJM7LGsNWlELU0DON2pYG5EfMkQoyXM5cA8NRVZRy8k=@proton.me> <20221125203328.21379-1-remco@remworks.net> Date: Sat, 21 Jan 2023 17:26:29 +0100 In-Reply-To: <20221125203328.21379-1-remco@remworks.net> (Remco van t. Veer's message of "Fri, 25 Nov 2022 21:33:28 +0100") Message-ID: <86zgab26ru.fsf_-_@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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-Seal: i=1; s=key1; d=yhetil.org; t=1674318582; a=rsa-sha256; cv=none; b=k4wpnxQGmVgzG3o9+5AZf3rAyVmKirNHOoJ9Nw35XNeb5lTAZfFzFWqvBS6vsnIg1Z2n5R plr7aVzKvnrnZdjL2o7HgAFuSc4Ey0aiFSbvDFAScc6l8cq8TFleE3J9UMlKmMB/XAfa3W ZbN71w7NcV2SsjyftGXxZhiPnNRwo5gT5zf70pLiI5QYDYC2qjjFbxxQwrt75FyKiikWI2 NWoEM/AwdhiVeGqvZ0lBeZbLSB/TE5wEOHiZ7TbWoypgEIl4Bdy2mnLYPKp+lCWa/n9vGG 6GAWwTTTGZj57JrmwHLAKhYjLVWFVwSe98FrngpIiTi+tUQOFA3Kc0Y6KQHlSQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=A17N8r3e; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1674318582; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: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=SuGAzClei0nrqwPQQ6S4mHb7xRwElmilOfjHg8YbVxo=; b=gVGTC5NHBHGtCw48QoHaVw8USsEhUF01RPdWaw01RX58dgJcoirLkxK8tEoOOHZ1naYjvq +M7aadEcJIHL0Vio2PV3OswprvHOkJxgeMPi8i9S2TFqpL9mplseAx690t3QYid68eHNmU mj1tdmGerJdkZb9R7w10aGMo/FqhEOxVzITB2fS5n9HegVu/FPMLflSf5ydSXnwaGty/h3 uDWoOskOTcExscDTlrajeKrlf03x8BMPWyFRmJg7u9kLE6/q804iwVsma+rhSqvZfQ6BV3 c6M0G4CFXebuTE21m30prynz4AUeaKAaZYWW8gLh9akFo+e+BCGnERtLxoIJZA== X-Spam-Score: 6.10 X-Migadu-Queue-Id: ACD3E1038F Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=A17N8r3e; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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-Scanner: scn0.migadu.com X-Migadu-Spam-Score: 6.10 X-TUID: nuVkGNU0kodp Hi, On Fri, 25 Nov 2022 at 21:33, Remco van 't Veer wrote: > * guix/scripts/gc.scm (guix-gc): Round MiBs in user feedback. > * po/*/*.po (guix/scripts/gc.scm)a: Round MiBs in user feedback. If the way to go with the translation dance? > --- > guix/scripts/gc.scm | 8 ++++---- > po/guix/bn.po | 6 +++--- [...] > po/guix/zh_CN.po | 6 +++--- > 29 files changed, 94 insertions(+), 94 deletions(-) The only change is: > 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)) and captured by G_ so does this only to be applied and then all the msgid updated by the translation process? Cheers, simon