* [PATCH] Display of saved space for garbage collection
@ 2016-07-16 8:05 Vincent Legoll
2016-07-16 12:40 ` Ludovic Courtès
0 siblings, 1 reply; 3+ messages in thread
From: Vincent Legoll @ 2016-07-16 8:05 UTC (permalink / raw)
To: guix-devel; +Cc: Vincent Legoll
From: Vincent Legoll <vincent.legoll@idgrilles.fr>
* guix/scripts/gc.scm: Add display of freed bytes for "guix gc"
Fixes <http://bugs.gnu.org/23979>.
Signed-off-by: Vincent Legoll <vincent.legoll@idgrilles.fr>
---
guix/scripts/gc.scm | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/guix/scripts/gc.scm b/guix/scripts/gc.scm
index 8db2813..bdfee43 100644
--- a/guix/scripts/gc.scm
+++ b/guix/scripts/gc.scm
@@ -24,6 +24,7 @@
#:use-module (ice-9 match)
#:use-module (ice-9 regex)
#:use-module (srfi srfi-1)
+ #:use-module (srfi srfi-11)
#:use-module (srfi srfi-26)
#:use-module (srfi srfi-37)
#:export (guix-gc))
@@ -221,9 +222,11 @@ Invoke the garbage collector.\n"))
(free-space
(ensure-free-space store free-space))
(min-freed
- (collect-garbage store min-freed))
+ (let-values (((paths freed) (collect-garbage store min-freed)))
+ (info (_ "freed ~h bytes~%") freed)))
(else
- (collect-garbage store)))))
+ (let-values (((paths freed) (collect-garbage store)))
+ (info (_ "freed ~h bytes~%") freed))))))
((delete)
(delete-paths store (map direct-store-path paths)))
((list-references)
--
1.9.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] Display of saved space for garbage collection
2016-07-16 8:05 [PATCH] Display of saved space for garbage collection Vincent Legoll
@ 2016-07-16 12:40 ` Ludovic Courtès
2016-07-16 12:56 ` Vincent Legoll
0 siblings, 1 reply; 3+ messages in thread
From: Ludovic Courtès @ 2016-07-16 12:40 UTC (permalink / raw)
To: Vincent Legoll; +Cc: guix-devel, Vincent Legoll
Vincent Legoll <vincent.legoll@gmail.com> skribis:
> From: Vincent Legoll <vincent.legoll@idgrilles.fr>
>
> * guix/scripts/gc.scm: Add display of freed bytes for "guix gc"
>
> Fixes <http://bugs.gnu.org/23979>.
Perfect. Applied, thanks!
Now make sure to email 23979-done@debbugs.gnu.org to close it. :-)
Ludo’.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Display of saved space for garbage collection
2016-07-16 12:40 ` Ludovic Courtès
@ 2016-07-16 12:56 ` Vincent Legoll
0 siblings, 0 replies; 3+ messages in thread
From: Vincent Legoll @ 2016-07-16 12:56 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: guix-devel, Vincent Legoll
> Now make sure to email 23979-done@debbugs.gnu.org to close it. :-)
Done, thanks
--
Vincent Legoll
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-07-16 12:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-16 8:05 [PATCH] Display of saved space for garbage collection Vincent Legoll
2016-07-16 12:40 ` Ludovic Courtès
2016-07-16 12:56 ` Vincent Legoll
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).