summaryrefslogtreecommitdiff
path: root/guix/scripts/size.scm
diff options
context:
space:
mode:
authorLeo Famulari <leo@famulari.name>2017-04-14 13:07:16 -0400
committerLeo Famulari <leo@famulari.name>2017-04-14 13:07:16 -0400
commitc57ce31a896f659a2e311c2ee90b9027f4a405bc (patch)
tree17d0d0238ca1db65cce1f2ac68273af0483c9e7d /guix/scripts/size.scm
parentf575efa12c5df9f9879b7be0fe3593a3106a346d (diff)
parent8439c9c05eab5c98d889fb1de56bc78f62a8058f (diff)
Merge branch 'master' into staging
Diffstat (limited to 'guix/scripts/size.scm')
-rw-r--r--guix/scripts/size.scm8
1 files changed, 5 insertions, 3 deletions
diff --git a/guix/scripts/size.scm b/guix/scripts/size.scm
index ea259f3758..f612dae700 100644
--- a/guix/scripts/size.scm
+++ b/guix/scripts/size.scm
@@ -1,5 +1,5 @@
;;; GNU Guix --- Functional package management for GNU
-;;; Copyright © 2015, 2016 Ludovic Courtès <ludo@gnu.org>
+;;; Copyright © 2015, 2016, 2017 Ludovic Courtès <ludo@gnu.org>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -91,7 +91,8 @@ if ITEM is not in the store."
(* 100. (/ self whole 1.)))))
(sort profile
(match-lambda*
- ((($ <profile> _ _ total1) ($ <profile> _ _ total2))
+ ((($ <profile> name1 self1 total1)
+ ($ <profile> name2 self2 total2))
(> total1 total2)))))
(format port (_ "total: ~,1f MiB~%") (/ whole MiB 1.))))
@@ -200,7 +201,8 @@ the name of a PNG file."
0
(sort profiles
(match-lambda*
- ((($ <profile> _ _ total1) ($ <profile> _ _ total2))
+ ((($ <profile> name1 self1 total1)
+ ($ <profile> name2 self2 total2))
(> total1 total2))))))
;; TRANSLATORS: This is the title of a graph, meaning that the graph