lua rewrite
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
local util = require("modules/util")
|
||||
|
||||
local function get_system_uptime()
|
||||
return util.format_time(tonumber(util.grep("/proc/uptime", "^(%S+)")))
|
||||
end
|
||||
|
||||
return { name = "uptime", cmd = get_system_uptime }
|
||||
Reference in New Issue
Block a user