Skip to content

[upower] Properly round up battery's capacity

ivan tkachenko requested to merge work/ratijas/square-capacity into master

The same rounding is already used for charge percent just few lines above. Without it, for example, values that are close to 100% (e.g. 99.9825%) were rounded down to 99% instead of up to 100%.

BUG: 448372 FIXED-IN: 5.91

Replaces plasma/plasma-workspace!1360 (closed)

Edited by ivan tkachenko

Merge request reports