service/upower!: divide percentage by 100

Brings range back to the expected 0-1 instead of 0-100.
This commit is contained in:
outfoxxed 2024-07-28 20:28:45 -07:00
parent 18563b1273
commit d9f66e63a3
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E

View file

@ -112,7 +112,7 @@ qreal UPowerDevice::energyCapacity() const { return this->pEnergyCapacity.get();
qreal UPowerDevice::changeRate() const { return this->pChangeRate.get(); }
qlonglong UPowerDevice::timeToEmpty() const { return this->pTimeToEmpty.get(); }
qlonglong UPowerDevice::timeToFull() const { return this->pTimeToFull.get(); }
qreal UPowerDevice::percentage() const { return this->pPercentage.get(); }
qreal UPowerDevice::percentage() const { return this->pPercentage.get() / 100; }
bool UPowerDevice::isPresent() const { return this->pIsPresent.get(); }
UPowerDeviceState::Enum UPowerDevice::state() const {