Closed gordonb3 closed 11 months ago
double
as primary datatype for timer values (see "option 1" in my post here and mrw's post here)(I know that you've read all this already. I just linked it all in here again for others only staring at this repo)
lua_pushinteger() treats the value of jive_jiffies() as a signed integer, causing critical MAX_VAL to be reached after 24 days rather than the expected 49 days. By casting the result as a double and calling lua_pushnumber() instead we eliminate the sign change and thereby double the watchdog enforced restart interval.
Signed-off-by: gordonb3 gordon@bosvangennip.nl