]> git.sur5r.net Git - i3/i3status/commit
Move time and ratio computations out of slurp_battery_info. (#151)
authortommie <tommie@users.noreply.github.com>
Mon, 15 Aug 2016 06:52:20 +0000 (07:52 +0100)
committerMichael Stapelberg <stapelberg@users.noreply.github.com>
Mon, 15 Aug 2016 06:52:20 +0000 (23:52 -0700)
commit7ce0044a03f94b2b0707b087ebb9de78c1d09874
tree989a8fa9b285940967f51361413ab7ae257cfcfc
parentcf53cf01929a8697c82f5f7565277861e8b6966c
Move time and ratio computations out of slurp_battery_info. (#151)

This allows OSes that support reporting multiple batteries to simply
sum into full_design,full_last,remaining and let print_battery_info
make computations.
src/print_battery_info.c