From: Jasper Lievisse Adriaanse Date: Tue, 7 Feb 2017 18:25:03 +0000 (+0100) Subject: Suppress printing :00 seconds of remaining battery lifetime, as apm(4)'s X-Git-Tag: 2.12~27^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9166765803d0a0519d350e375a0ba5e35d880ae4;p=i3%2Fi3status Suppress printing :00 seconds of remaining battery lifetime, as apm(4)'s estimate only has a granularity of minutes. From tb@openbsd.org --- diff --git a/src/print_battery_info.c b/src/print_battery_info.c index 387fb44..7883a11 100644 --- a/src/print_battery_info.c +++ b/src/print_battery_info.c @@ -482,7 +482,7 @@ void print_battery_info(yajl_gen json_gen, char *buffer, int number, const char /* These OSes report battery stats in whole percent. */ integer_battery_capacity = true; #endif -#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__) +#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__) || defined(__OpenBSD__) /* These OSes report battery time in minutes. */ hide_seconds = true; #endif