aboutsummaryrefslogtreecommitdiff
path: root/uptime.lua
diff options
context:
space:
mode:
Diffstat (limited to 'uptime.lua')
-rw-r--r--uptime.lua5
1 files changed, 1 insertions, 4 deletions
diff --git a/uptime.lua b/uptime.lua
index c7082c1..540c690 100644
--- a/uptime.lua
+++ b/uptime.lua
@@ -18,10 +18,7 @@ module("vicious.uptime")
-- {{{ Uptime widget type
local function worker(format)
- local proc = setmetatable(
- { _path = "/proc" },
- helpers.pathtotable
- )
+ local proc = helpers.pathtotable("/proc")
-- Get system uptime
local up_t = math.floor(string.match(proc.uptime, "[%d]+"))