diff options
| -rw-r--r-- | lisp/battery.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/battery.el b/lisp/battery.el index d0293697bef..b5e312f6c3e 100644 --- a/lisp/battery.el +++ b/lisp/battery.el | |||
| @@ -628,12 +628,12 @@ The following %-sequences are provided: | |||
| 628 | (cond ((looking-at "; charging") | 628 | (cond ((looking-at "; charging") |
| 629 | (setq battery-status "charging" | 629 | (setq battery-status "charging" |
| 630 | battery-status-symbol "+")) | 630 | battery-status-symbol "+")) |
| 631 | ((< (string-to-number load-percentage) battery-load-low) | ||
| 632 | (setq battery-status "low" | ||
| 633 | battery-status-symbol "-")) | ||
| 634 | ((< (string-to-number load-percentage) battery-load-critical) | 631 | ((< (string-to-number load-percentage) battery-load-critical) |
| 635 | (setq battery-status "critical" | 632 | (setq battery-status "critical" |
| 636 | battery-status-symbol "!")) | 633 | battery-status-symbol "!")) |
| 634 | ((< (string-to-number load-percentage) battery-load-low) | ||
| 635 | (setq battery-status "low" | ||
| 636 | battery-status-symbol "-")) | ||
| 637 | (t | 637 | (t |
| 638 | (setq battery-status "high" | 638 | (setq battery-status "high" |
| 639 | battery-status-symbol ""))) | 639 | battery-status-symbol ""))) |