mirror of https://github.com/aredn/aredn.git
Format Uptime as String (#100)
* Format Uptime as String Format uptime as a string with values for days, hours, minutes, and seconds. * Format uptime as String Change code to use the secondsToClock function in utils.lua
This commit is contained in:
parent
209f9dc3f9
commit
8ef6e56925
|
@ -376,7 +376,7 @@ end
|
|||
function model.getUptime()
|
||||
local mynix=nixio.sysinfo()
|
||||
local upsecs=mynix['uptime']
|
||||
return upsecs
|
||||
return secondsToClock(upsecs)
|
||||
end
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue