aboutsummaryrefslogtreecommitdiff
path: root/wmstatus.c
diff options
context:
space:
mode:
Diffstat (limited to 'wmstatus.c')
-rw-r--r--wmstatus.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/wmstatus.c b/wmstatus.c
index 7f697e2..fc7cedf 100644
--- a/wmstatus.c
+++ b/wmstatus.c
@@ -1265,6 +1265,8 @@ read_battery_status (int dir, char **type)
int charge = read_battery_charge (dir);
if (charge >= 0 && charge <= 100)
str_append_printf (&s, "%u%%", charge);
+ else
+ str_append_printf (&s, "—");
char *status = NULL;
char *model_name = read_value (dir, "model_name", NULL);