mirror of
https://github.com/quickshell-mirror/quickshell.git
synced 2026-10-27 02:54:36 +00:00
service/upower!: divide percentage by 100
Brings range back to the expected 0-1 instead of 0-100.
This commit is contained in:
1 file changed
+1
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user