Xinqi Bao's Git
projects
/
slstatus.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
| inline |
side by side
battery_state: Unify unknown state with "?" symbol
[slstatus.git]
/
components
/
battery.c
diff --git
a/components/battery.c
b/components/battery.c
index
86ea2a1
..
e997e4c
100644
(file)
--- a/
components/battery.c
+++ b/
components/battery.c
@@
-30,7
+30,6
@@
{ "Charging", "+" },
{ "Discharging", "-" },
{ "Full", "=" },
- { "Unknown", "/" },
};
size_t i;
char path[PATH_MAX], state[12];
@@
-89,7
+88,6
@@
} map[] = {
{ APM_AC_ON, "+" },
{ APM_AC_OFF, "-" },
- { APM_AC_UNKNOWN, "/" },
};
fd = open("/dev/apm", O_RDONLY);