[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:
parent
2cc2cf8282
commit
d91294f010
3 changed files with 19 additions and 5 deletions
|
@ -1,5 +1,8 @@
|
|||
{
|
||||
"defaults": { "separator": "", "padding": " " },
|
||||
"defaults": {
|
||||
"separator": "", "padding": " ",
|
||||
"unknown": { "prefix": "" }
|
||||
},
|
||||
"date": { "prefix": "" },
|
||||
"time": { "prefix": "" },
|
||||
"memory": { "prefix": "" },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue