diff options
author | Adrian C. (anrxc) <anrxc@sysphere.org> | 2009-11-11 14:32:37 +0100 |
---|---|---|
committer | Adrian C. (anrxc) <anrxc@sysphere.org> | 2009-11-11 14:32:37 +0100 |
commit | 1d0cfd3aeded65ded10b7ab3163488c3dc1d4383 (patch) | |
tree | 8de5320c33a0167a9e32bcaca386e7e6d3802f7b /cpufreq.lua | |
parent | 76942d17a448a2f6a45fb4b3d4d139c416fdf376 (diff) | |
download | vicious-legacy-1d0cfd3aeded65ded10b7ab3163488c3dc1d4383.tar.xz |
Cleanup widgets that use pathtotable helper
Diffstat (limited to 'cpufreq.lua')
-rw-r--r-- | cpufreq.lua | 6 |
1 files changed, 1 insertions, 5 deletions
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"] = "⌁", |