mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05:00
guix gc: Display of saved space for garbage collection.
Fixes <http://bugs.gnu.org/23979>. * guix/scripts/gc.scm (guix-gc): Display freed bytes. Signed-off-by: Vincent Legoll <vincent.legoll@idgrilles.fr> Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
fb8a5d633a
commit
1187a27112
1 changed files with 5 additions and 2 deletions
|
@ -24,6 +24,7 @@ (define-module (guix scripts gc)
|
|||
#: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 @@ (define (list-relatives relatives)
|
|||
(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)
|
||||
|
|
Loading…
Reference in a new issue