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 --- entropy.lua | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'entropy.lua') diff --git a/entropy.lua b/entropy.lua index e2f0e0c..5cea64a 100644 --- a/entropy.lua +++ b/entropy.lua @@ -17,10 +17,7 @@ module("vicious.entropy") -- {{{ Entropy widget type local function worker(format) - local random = setmetatable( - { _path = "/proc/sys/kernel/random"}, - helpers.pathtotable - ) + local random = helpers.pathtotable("/proc/sys/kernel/random") -- Linux 2.6 has a default entropy pool of 4096-bits local poolsize = tonumber(random.poolsize) -- cgit v1.2.3