diff options
author | Alexander Vasarab <alexander@vasaconsulting.com> | 2014-04-28 12:16:48 -0700 |
---|---|---|
committer | Michael Stapelberg <michael@stapelberg.de> | 2014-04-30 09:23:17 +0200 |
commit | 628149b22761fd2bff7b81bda18fcc50bc11529c (patch) | |
tree | 6bf7aca6010a5fca711d14b18be3312f0de7ac92 /src/process_runs.c | |
parent | 93ead58bc16ba589fec58af375b0f6b0b4344290 (diff) |
Implement battery functionality for NetBSD users
This patch takes a similar approach as the NetBSD CPU temperature
code in that it uses proplib(3) to walk dictionaries supplied by
envsys(4).
In addition to providing the basic functionality, it:
* Provides all existing format specifiers (%emptytime %consumption
%status %percentage %remaining)
* Respects all existing config options (hide_seconds, low_threshold,
integer_battery_capacity, last_full_capacity)
* Projects "time until full" when battery status is CS_CHARGING
Diffstat (limited to 'src/process_runs.c')
0 files changed, 0 insertions, 0 deletions