service/upower!: divide percentage by 100

Brings range back to the expected 0-1 instead of 0-100.
This commit is contained in:
outfoxxed committed 2024-07-28 20:28:45 -07:00
1 parent 18563b1273
commit d9f66e63a3
1 file changed
+1 -1
+1 -1
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 {