Modified to

a) show the total time remaining in the panel rather than that of one of possible several batteries
b) where individual batteries in the menu are listed show them with time or percent or both as selected from the menu
c) fix the issue where you select time remaining and the panel does not update and remaining at percent (this one is a hack that seems to work)

All the above designed to improve the use of the power applet on machines with multiple batteries like the Lenovo thinkpad T440s