Reproduced in test suite:
TI:09:55:58 energy 132,000000 bigger than full 120,000000
(lt-upowerd:8664): GLib-GObject-WARNING **: value "110,000000" of type 'gdouble' is invalid or out of range for property 'percentage' of type 'gdouble'
That's how it ends up as 0%.
Reproduced in test suite:
TI:09:55:58 energy 132,000000 bigger than full 120,000000
(lt-upowerd:8664): GLib-GObject- WARNING **: value "110,000000" of type 'gdouble' is invalid or out of range for property 'percentage' of type 'gdouble'
That's how it ends up as 0%.