"MaxCapacity" and "CurrentCapacity" returns value in percentage, range from 0 to 100, which causes bug in calculating current capacity and max capacity.
I have no idea if this bug affects Intel Mac too, so my modification is a bit conservative: only fix it for aarch64, i.e, M series chips.
"MaxCapacity" and "CurrentCapacity" returns value in percentage, range from 0 to 100, which causes bug in calculating current capacity and max capacity.
I have no idea if this bug affects Intel Mac too, so my modification is a bit conservative: only fix it for aarch64, i.e, M series chips.
The experiment is done in M1 MacBook Air:
Before this fix:
Note the
energy
energy_full
are just a few thousand joule, andstate of health
is shown as 0.02, which is impossible.After this fix: