Add battery_remaining function on OpenBSD

Implementation of a battery_remaining function which returns the
remaining battery time in HH:MM format. Linux function still needs
implementation.
Move common code to load_apm_power_info
This commit is contained in:
Tobias Tschinkowitz
2018-05-18 14:43:04 +02:00
committed by Aaron Marcher
parent 80fc20d1d6
commit 8c8326f793
3 changed files with 50 additions and 27 deletions

View File

@ -16,6 +16,8 @@ static const char unknown_str[] = "n/a";
* NULL on OpenBSD
* battery_state battery charging state battery name (BAT0)
* NULL on OpenBSD
* battery_remaining battery remaining HH:MM battery name (BAT0)
* NULL on OpenBSD
* cpu_perc cpu usage in percent NULL
* cpu_freq cpu frequency in MHz NULL
* datetime date and time format string (%F %T)