We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4f1592 commit a8afd05Copy full SHA for a8afd05
src/detection/battery/battery_haiku.c
@@ -28,7 +28,7 @@ const char* parseBattery(int dfd, const char* battId, FFlist* results)
28
battery->temperature = FF_BATTERY_TEMP_UNSET;
29
battery->cycleCount = extended.cycles;
30
battery->timeRemaining = -1;
31
- battery->capacity = (double) basic.capacity / (double) extended.last_full_charge;
+ battery->capacity = (double) basic.capacity * 100. / (double) extended.last_full_charge;
32
33
if (basic.state & BATTERY_DISCHARGING)
34
ffStrbufAppendS(&battery->status, "Discharging, ");
0 commit comments