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 7c1991c commit d3e40f6Copy full SHA for d3e40f6
src/detection/battery/battery_obsd.c
@@ -38,7 +38,7 @@ const char* ffDetectBattery(FF_MAYBE_UNUSED FFBatteryOptions* options, FFlist* r
38
ffStrbufAppendS(&battery->status, "Backup In Use");
39
else if (info.ac_state == APM_AC_OFF)
40
{
41
- battery->timeRemaining = info.minutes_left * 60
+ battery->timeRemaining = (int) info.minutes_left * 60;
42
ffStrbufAppendS(&battery->status, "Discharging");
43
}
44
0 commit comments