forked from quickshell/quickshell
service/upower!: divide percentage by 100
Brings range back to the expected 0-1 instead of 0-100.
This commit is contained in:
parent
18563b1273
commit
d9f66e63a3
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue