diff options
author | Ingo Bürk <admin@airblader.de> | 2017-02-07 20:45:36 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-07 20:45:36 +0100 |
commit | c1172065a776f2e10c60d63544ae167421887227 (patch) | |
tree | 8b399246277ca2bf3ff909acff5d1ed037fd3d05 | |
parent | 93576bccc3acff95206933cc1486e0d01c15316e (diff) | |
parent | 9166765803d0a0519d350e375a0ba5e35d880ae4 (diff) |
Merge pull request #201 from jasperla/openbsd_bat_info
Suppress printing :00 seconds of remaining battery lifetime
-rw-r--r-- | src/print_battery_info.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |