From 1d0cfd3aeded65ded10b7ab3163488c3dc1d4383 Mon Sep 17 00:00:00 2001 From: "Adrian C. (anrxc)" Date: Wed, 11 Nov 2009 14:32:37 +0100 Subject: Cleanup widgets that use pathtotable helper --- uptime.lua | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'uptime.lua') 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]+")) -- cgit v1.2.3