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 --- cpufreq.lua | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'cpufreq.lua') diff --git a/cpufreq.lua b/cpufreq.lua index 7718a52..1eddcb9 100644 --- a/cpufreq.lua +++ b/cpufreq.lua @@ -17,11 +17,7 @@ module("vicious.cpufreq") -- {{{ CPU frequency widget type local function worker(format, cpuid) - local cpufreq = setmetatable( - { _path = "/sys/devices/system/cpu/"..cpuid.."/cpufreq"}, - helpers.pathtotable - ) - + local cpufreq = helpers.pathtotable("/sys/devices/system/cpu/"..cpuid.."/cpufreq") local governor_state = { ["ondemand\n"] = "↯", ["powersave\n"] = "⌁", -- cgit v1.2.3