Merge pull request from conao3/fix_default_value

fix gethash default value for use-package-statistics-time
GitHub-reference: https://github.com/jwiegley/use-package/issues/681
This commit is contained in:
John Wiegley 2018-11-19 15:50:27 -08:00 committed by GitHub
commit 7e40a9c424

View file

@ -988,10 +988,10 @@ The date is returned as a string."
(defun use-package-statistics-time (package) (defun use-package-statistics-time (package)
"Return the time is took for PACKAGE to load." "Return the time is took for PACKAGE to load."
(+ (float-time (gethash :config-secs package 0)) (+ (float-time (gethash :config-secs package '(0 0 0 0)))
(float-time (gethash :init-secs package 0)) (float-time (gethash :init-secs package '(0 0 0 0)))
(float-time (gethash :preface-secs package 0)) (float-time (gethash :preface-secs package '(0 0 0 0)))
(float-time (gethash :use-package-secs package 0)))) (float-time (gethash :use-package-secs package '(0 0 0 0)))))
(defun use-package-statistics-convert (package) (defun use-package-statistics-convert (package)
"Return information about PACKAGE. "Return information about PACKAGE.