projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f563fbf
)
Fix battery load calculation on Haiku
author
Po Lu
<luangruo@yahoo.com>
Mon, 3 Jan 2022 07:44:51 +0000
(15:44 +0800)
committer
Po Lu
<luangruo@yahoo.com>
Mon, 3 Jan 2022 07:44:51 +0000
(15:44 +0800)
* lisp/battery.el (battery-haiku-acpi-battery): Fix load
calculation.
lisp/battery.el
patch
|
blob
|
history
diff --git
a/lisp/battery.el
b/lisp/battery.el
index 7661697cb456693e4d4332e2864ec03a97352da2..f4d59f30bbb0582a5d7a96cb3a57a2f32419efe7 100644
(file)
--- 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")