[modules/battery] Fix ac and unknown display

If the computer runs on AC, display that instead of showing "100%" in
the status.

Also, if reading the charging status fails for some reason (except the
computer being on AC), go into critical state and display "n/a".

see #23
This commit is contained in:
Tobi-wan Kenobi 2016-12-11 07:28:15 +01:00
parent 2cc2cf8282
commit d91294f010
3 changed files with 19 additions and 5 deletions

View file

@ -1,5 +1,8 @@
{
"defaults": { "separator": "", "padding": " " },
"defaults": {
"separator": "", "padding": " ",
"unknown": { "prefix": "" }
},
"date": { "prefix": "" },
"time": { "prefix": "" },
"memory": { "prefix": "" },