diff options
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"] = "⌁", |