mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 05:18:07 -05:00
size: Avoid '_' as a pattern variable in 'match'.
* guix/scripts/size.scm (display-profile, profile->page-map): Don't use '_' as a 'match' pattern variable.
This commit is contained in:
parent
6b6aca9b36
commit
9a3762a768
1 changed files with 5 additions and 3 deletions
|
@ -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 @@ (define MiB (expt 2 20))
|
|||
(* 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 @@ (define data
|
|||
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
|
||||
|
|
Loading…
Reference in a new issue