Bugzilla – Bug 15307
Uptime is wrong
Last modified: 2010-03-01 08:03:19 UTC
This is probably just the wrong units specifyed I noticed the Uptime displayed 1 days 55 hours 33 minutes Shouldn't that be 3 days 7 hours 33 minutes.
I noticed this as well, on the 7.4.2 firmware. I have time I will try to make a patch.
Here's a patch to fix this: --- Diagnostics/DiagnosticsApplet.lua.bak Mon Mar 1 03:12:52 2010 +++ Diagnostics/DiagnosticsApplet.lua Mon Mar 1 03:14:06 2010 @@ -287,8 +287,8 @@ time = string.match(time, "(%d+)") uptime = {} - uptime.days = math.floor(time / 216000) - time = math.fmod(time, 216000) + uptime.days = math.floor(time / 86400) + time = math.fmod(time, 86400) uptime.hours = math.floor(time / 3600) time = math.fmod(time, 3600) uptime.minutes = math.floor(time / 60) I have no idea why the number of seconds in a day is 2.5 times too large, but anyway the above patch works for me.
== Auto-comment from SVN commit #8605 to the jive repo by bklaas == == https://svn.slimdevices.com/jive?view=revision&revision=8605 == Fixed Bug: 15307 Description: there are 86400 seconds in a day Ryan/aslak3: thanks for pointing this bug out :)