Refactor common seconds_remaining code in print_battery_info.
Refactor common seconds_remaining code in print_battery_info.

ixjlyons/i3status,peder2tm/i3status-netdev,peder2tm/i3status-netdev,flammi/i3status,Gravemind/i3status,Dettorer/i3status,jasperla/i3status,Dettorer/i3status,Dettorer/i3status,ixjlyons/i3status,i3/i3status,Watcom/i3status,lexszero/i3status,Gravemind/i3status,Watcom/i3status,lexszero/i3status,peder2tm/i3status-netdev,jasperla/i3status,lbonn/i3status,ixjlyons/i3status,lbonn/i3status,Watcom/i3status,i3/i3status,i3/i3status,ixjlyons/i3status,peder2tm/i3status-netdev,lbonn/i3status,jasperla/i3status,Gravemind/i3status,flammi/i3status,lexszero/i3status,jasperla/i3status,lbonn/i3status,Dettorer/i3status,Watcom/i3status,flammi/i3status,i3/i3status,lexszero/i3status,Gravemind/i3status,flammi/i3status