From db3563945727a11bbd08a8f8a8de435c5a2b3618 Mon Sep 17 00:00:00 2001 From: Naoya Yamashita Date: Sat, 19 May 2018 14:21:26 +0900 Subject: [PATCH] fix gethash default value for use-package-statistics-time float-time expect list like (HIGH LOW USEC PSEC) > HIGH has the most significant bits of the seconds, while LOW has the > least significant 16 bits. USEC and PSEC are the microsecond and > picosecond counts. by `current-time` in editfns.c --- lisp/use-package/use-package-core.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lisp/use-package/use-package-core.el b/lisp/use-package/use-package-core.el index bd18c972303..a88efb91a21 100644 --- a/lisp/use-package/use-package-core.el +++ b/lisp/use-package/use-package-core.el @@ -989,10 +989,10 @@ The date is returned as a string." (defun use-package-statistics-time (package) "Return the time is took for PACKAGE to load." - (+ (float-time (gethash :config-secs package 0)) - (float-time (gethash :init-secs package 0)) - (float-time (gethash :preface-secs package 0)) - (float-time (gethash :use-package-secs package 0)))) + (+ (float-time (gethash :config-secs package '(0 0 0 0))) + (float-time (gethash :init-secs package '(0 0 0 0))) + (float-time (gethash :preface-secs package '(0 0 0 0))) + (float-time (gethash :use-package-secs package '(0 0 0 0))))) (defun use-package-statistics-convert (package) "Return information about PACKAGE. -- 2.39.2