From d3e40f625b25bfba0cae136ba32b5450004cf67b Mon Sep 17 00:00:00 2001 From: Carter Li Date: Sun, 22 Dec 2024 09:29:36 +0800 Subject: [PATCH] Battery (OpenBSD): fix build --- src/detection/battery/battery_obsd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/detection/battery/battery_obsd.c b/src/detection/battery/battery_obsd.c index 034f8b20d..ea4f73148 100644 --- a/src/detection/battery/battery_obsd.c +++ b/src/detection/battery/battery_obsd.c @@ -38,7 +38,7 @@ const char* ffDetectBattery(FF_MAYBE_UNUSED FFBatteryOptions* options, FFlist* r ffStrbufAppendS(&battery->status, "Backup In Use"); else if (info.ac_state == APM_AC_OFF) { - battery->timeRemaining = info.minutes_left * 60 + battery->timeRemaining = (int) info.minutes_left * 60; ffStrbufAppendS(&battery->status, "Discharging"); }