(battery-linux-proc-acpi): Look into battery
directories matching the literal string "CMB", too (required for Linux kernel version 2.6.7).
This commit is contained in:
parent
3dab38a94e
commit
bed6d70874
1 changed files with 1 additions and 1 deletions
|
@ -290,7 +290,7 @@ The following %-sequences are provided:
|
|||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue