battery
battery copied to clipboard
Aggregate batteries stats
Issue #4
Add a Summarize() (*Battery, error)
func to aggregate data from multiple batteries.
@KenjiTakahashi not sure tho about some metrics, like State
. I followed the simplest logic - higher (and more important) status overrides others, i.e. if a few batteries are full and one is discharging, status will be Discharging