changeset 56663:f5b70c70c08c

(battery-linux-proc-acpi): Look into battery directories matching the literal string "CMB", too (required for Linux kernel version 2.6.7).
author Eli Zaretskii <eliz@gnu.org>
date Sat, 14 Aug 2004 12:21:03 +0000
parents 42da817a2b25
children f25845e2801f
files lisp/battery.el
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/battery.el	Sat Aug 14 12:01:01 2004 +0000
+++ b/lisp/battery.el	Sat Aug 14 12:21:03 2004 +0000
@@ -290,7 +290,7 @@
 				      nil t)
 	       (setq low (+ (or low 0)
 			    (string-to-int (match-string 1))))))))
-       (directory-files "/proc/acpi/battery/" t "BAT")))
+       (directory-files "/proc/acpi/battery/" t "\\(BAT\\|CMB\\)")))
     (and capacity rate
 	 (setq minutes (if (zerop rate) 0
 			 (floor (* (/ (float (if (string= charging-state