diff options
Diffstat (limited to 'lisp/battery.el')
-rw-r--r-- | lisp/battery.el | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/battery.el b/lisp/battery.el index 50edc8dde8a..ec35e04e1ab 100644 --- a/lisp/battery.el +++ b/lisp/battery.el @@ -408,6 +408,7 @@ The following %-sequences are provided: (format "%d:%02d" hours (- minutes (* 60 hours)))) "N/A")) (cons ?p (or (and full-capacity capacity + (> full-capacity 0) (number-to-string (floor (/ capacity (/ (float full-capacity) 100))))) |