From 61c35e415cd4c8046f9b08c29f97a7cf29640c94 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Mon, 3 Jan 2022 15:44:51 +0800 Subject: [PATCH] Fix battery load calculation on Haiku * lisp/battery.el (battery-haiku-acpi-battery): Fix load calculation. --- lisp/battery.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/battery.el b/lisp/battery.el index 7661697cb45..f4d59f30bbb 100644 --- a/lisp/battery.el +++ b/lisp/battery.el @@ -689,8 +689,8 @@ The following %-sequences are provided: ((eq state 'critical) "!") (t "")))) (cons ?p (format "%.0f" - (/ (plist-get list :capacity) - (plist-get list :last-full-charge))))) + (* 100 (/ (plist-get list :capacity) + (plist-get list :last-full-charge)))))) '((?c . "N/A") (?r . "N/A") (?B . "N/A") -- 2.39.5