Skip to content

Commit d3e40f6

Browse files
committed
Battery (OpenBSD): fix build
1 parent 7c1991c commit d3e40f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/detection/battery/battery_obsd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const char* ffDetectBattery(FF_MAYBE_UNUSED FFBatteryOptions* options, FFlist* r
3838
ffStrbufAppendS(&battery->status, "Backup In Use");
3939
else if (info.ac_state == APM_AC_OFF)
4040
{
41-
battery->timeRemaining = info.minutes_left * 60
41+
battery->timeRemaining = (int) info.minutes_left * 60;
4242
ffStrbufAppendS(&battery->status, "Discharging");
4343
}
4444

0 commit comments

Comments
 (0)