battery: Tooltips for FreeBSD (fix format string)

This commit is contained in:
o9000 2015-08-07 08:20:34 +02:00
parent 9d2e62f724
commit 61d786cf4f

View file

@ -83,7 +83,7 @@ char* battery_os_tooltip() {
gchar *state = (battery_state.state == BATTERY_UNKNOWN) ? "Level" : chargestate2str(battery_state.state); 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_c(tooltip, '\n');
g_string_append_printf(tooltip, "AC\n"); g_string_append_printf(tooltip, "AC\n");