diff --git a/src/detection/battery/battery_haiku.c b/src/detection/battery/battery_haiku.c index 67b117bdb..60dbde3ea 100644 --- a/src/detection/battery/battery_haiku.c +++ b/src/detection/battery/battery_haiku.c @@ -28,7 +28,7 @@ const char* parseBattery(int dfd, const char* battId, FFlist* results) battery->temperature = FF_BATTERY_TEMP_UNSET; battery->cycleCount = extended.cycles; battery->timeRemaining = -1; - battery->capacity = (double) basic.capacity / (double) extended.last_full_charge; + battery->capacity = (double) basic.capacity * 100. / (double) extended.last_full_charge; if (basic.state & BATTERY_DISCHARGING) ffStrbufAppendS(&battery->status, "Discharging, ");