From 61d786cf4f9d4ef33eabe42ad2b4e2b86630405d Mon Sep 17 00:00:00 2001 From: o9000 Date: Fri, 7 Aug 2015 08:20:34 +0200 Subject: [PATCH] battery: Tooltips for FreeBSD (fix format string) --- src/battery/freebsd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/battery/freebsd.c b/src/battery/freebsd.c index 3edc107..e8d5355 100644 --- a/src/battery/freebsd.c +++ b/src/battery/freebsd.c @@ -83,7 +83,7 @@ char* battery_os_tooltip() { gchar *state = (battery_state.state == BATTERY_UNKNOWN) ? "Level" : chargestate2str(battery_state.state); - g_string_append_printf(tooltip, "\t%s: %s", state, battery_state.percentage); + g_string_append_printf(tooltip, "\t%s: %d%%", state, battery_state.percentage); g_string_append_c(tooltip, '\n'); g_string_append_printf(tooltip, "AC\n");