diff options
Diffstat (limited to 'thermal.lua')
-rw-r--r-- | thermal.lua | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/thermal.lua b/thermal.lua index f8b174e..6d0f63b 100644 --- a/thermal.lua +++ b/thermal.lua @@ -15,10 +15,7 @@ module("vicious.thermal") -- {{{ Thermal widget type local function worker(format, thermal_zone) - local thermal = setmetatable( - { _path = "/sys/class/thermal/" .. thermal_zone }, - helpers.pathtotable - ) + local thermal = helpers.pathtotable("/sys/class/thermal/"..thermal_zone) -- Get ACPI thermal zone if thermal.temp then |