Steevee28 wrote: 
> This means that the reboot occured at a device uptime of 24 days +20:31.
> This is 24.855 days, corresponding to 2^31/1000/3600/24, thus
> *corresponding to an overflow of a signed 32bit timer running at
> 1000Hz*.

Here may lie the source of 24.855 days as opposed to 49.710 days:
https://github.com/Logitech/squeezeplay/blob/public/7.7/src/squeezeplay/src/ui/jive_framework.c#L967

Code:
--------------------
    
  int jiveL_get_ticks(lua_State *L) {
        lua_pushinteger(L, jive_jiffies());
        return 1;
  }
  
--------------------


Although jive_jiffies appears to be returning an unsigned 32 bit
integer, lua_pushinteger expects a type of lua_Integer, which version
5.1 of the lua manual describes as:

Code:
--------------------
    
  typedef ptrdiff_t lua_Integer;
  The type used by the Lua API to represent integral values.
  
  By default it is a ptrdiff_t, which is usually the largest signed integral 
type the machine handles "comfortably".
  
--------------------

https://www.lua.org/manual/5.1/manual.html


------------------------------------------------------------------------
mrw's Profile: http://forums.slimdevices.com/member.php?userid=38299
View this thread: http://forums.slimdevices.com/showthread.php?t=111650

_______________________________________________
Radio mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/radio

Reply via email to