[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 61c35e415c: Fix battery load calculation on Haiku
From: |
Po Lu |
Subject: |
master 61c35e415c: Fix battery load calculation on Haiku |
Date: |
Mon, 3 Jan 2022 02:46:00 -0500 (EST) |
branch: master
commit 61c35e415cd4c8046f9b08c29f97a7cf29640c94
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>
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 7661697cb4..f4d59f30bb 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")
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 61c35e415c: Fix battery load calculation on Haiku,
Po Lu <=