mrodrig/firewalla-apcupsd

units?

kenman345 opened this issue · 2 comments

I noticed in the conf file that you only know the units for configurations on the MINUTES option. Is this seconds, minutes, milliseconds?

ONBATTERYDELAY 6

Hi @kenman345. That conf file is directly from the apcupsd package, but it appears the ONBATTERYEVENT option is specified in seconds.

# The ONBATTERYDELAY is the time in seconds from when a power failure

There's some documentation from the apcupsd package on the different parameters here too, which confirms that it's specified in seconds:
https://linux.die.net/man/5/apcupsd.conf

ONBATTERYDELAY

The number of seconds from when a power failure is detected until apcupsd reacts with an onbattery event.

I'm going to close this out, but feel free to re-open it if my previous post didn't answer the question. Thanks!