From: zimoun <zimon.toutoune@gmail.com>
To: Remco van 't Veer <remco@remworks.net>
Cc: 58880@debbugs.gnu.org, Julien Lepiller <julien@lepiller.eu>
Subject: bug#58880: 'guix gc' does not round the amount of disk space freed
Date: Sat, 21 Jan 2023 17:26:29 +0100 [thread overview]
Message-ID: <86zgab26ru.fsf_-_@gmail.com> (raw)
In-Reply-To: <20221125203328.21379-1-remco@remworks.net> (Remco van t. Veer's message of "Fri, 25 Nov 2022 21:33:28 +0100")
Hi,
On Fri, 25 Nov 2022 at 21:33, Remco van 't Veer <remco@remworks.net> 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
next prev parent reply other threads:[~2023-01-21 16:29 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-29 23:50 bug#58880: guix gc notation broken Christian Miller via Bug reports for GNU Guix
2022-10-30 0:12 ` Christian Miller via Bug reports for GNU Guix
2022-11-25 20:33 ` bug#58880: [PATCH] guix gc: Round MiBs in user feedback Remco van 't Veer
2023-01-21 16:26 ` zimoun [this message]
2023-01-21 16:52 ` bug#58880: 'guix gc' does not round the amount of disk space freed Remco van 't Veer
2023-01-22 14:49 ` bug#58880: Patch impacting translation (was Re: bug#58880: 'guix gc' does not round the amount of disk space freed) zimoun
2023-01-22 16:43 ` Julien Lepiller
2023-01-23 7:51 ` zimoun
2023-01-23 13:44 ` bokr
2023-01-24 9:41 ` Simon Tournier
2023-01-23 13:01 ` bug#58880: [PATCH v2 0/2] split into 2 commits and rebased on master Remco van 't Veer
2023-01-23 13:01 ` bug#58880: [PATCH v2 1/2] guix gc: Round MiBs in user feedback Remco van 't Veer
2023-01-23 13:01 ` bug#58880: [PATCH v2 2/2] nls: Update translation keys for guix gc Remco van 't Veer
2023-01-23 13:14 ` Julien Lepiller
2023-01-23 18:16 ` Remco van 't Veer
2023-01-24 15:14 ` pelzflorian (Florian Pelz)
2023-01-25 7:47 ` Remco van 't Veer
2023-05-31 21:41 ` bug#58880: 'guix gc' does not round the amount of disk space freed pelzflorian (Florian Pelz)
2023-01-23 18:17 ` bug#58880: [PATCH v3 1/2] guix gc: Round MiBs in user feedback Remco van 't Veer
2023-01-23 18:17 ` bug#58880: [PATCH v3 2/2] nls: Update translation keys for guix gc Remco van 't Veer
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=86zgab26ru.fsf_-_@gmail.com \
--to=zimon.toutoune@gmail.com \
--cc=58880@debbugs.gnu.org \
--cc=julien@lepiller.eu \
--cc=remco@remworks.net \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.