aboutsummaryrefslogtreecommitdiff
path: root/uptime.lua
diff options
context:
space:
mode:
authorAdrian C. (anrxc) <anrxc@sysphere.org>2009-11-11 14:32:37 +0100
committerAdrian C. (anrxc) <anrxc@sysphere.org>2009-11-11 14:32:37 +0100
commit1d0cfd3aeded65ded10b7ab3163488c3dc1d4383 (patch)
tree8de5320c33a0167a9e32bcaca386e7e6d3802f7b /uptime.lua
parent76942d17a448a2f6a45fb4b3d4d139c416fdf376 (diff)
downloadvicious-legacy-1d0cfd3aeded65ded10b7ab3163488c3dc1d4383.tar.xz
Cleanup widgets that use pathtotable helper
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]+"))