Commit 958c9d5a authored by Hannah von Reth's avatar Hannah von Reth

fixed charge percentage

parent 20427bfc
......@@ -176,7 +176,7 @@ void WinBattery::powerChanged()
m_voltage = status.Voltage / 1000.0;//provided in mV
if (info.FullChargedCapacity != 0) {
m_charge = m_energy / info.FullChargedCapacity * 100.0;
m_charge = (float)status.Capacity / info.FullChargedCapacity * 100.0;
}
if (info.DesignedCapacity != 0) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment