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 --- thermal.lua | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'thermal.lua') 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 -- cgit v1.2.3