From 4dad2e360c1c464feef9a8aaff6e96a7636c54b7 Mon Sep 17 00:00:00 2001 From: "Adrian C. (anrxc)" Date: Sun, 14 Mar 2010 03:37:40 +0100 Subject: API: missing warg should not break awesome --- widgets/thermal.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'widgets/thermal.lua') diff --git a/widgets/thermal.lua b/widgets/thermal.lua index 9768c57..6ba8c69 100644 --- a/widgets/thermal.lua +++ b/widgets/thermal.lua @@ -18,6 +18,8 @@ module("vicious.widgets.thermal") -- {{{ Thermal widget type local function worker(format, warg) + if not warg then return end + local zone = { -- Known temperature data sources ["sys"] = {"/sys/class/thermal/", file = "temp", div = 1000}, ["core"] = {"/sys/devices/platform/", file = "temp1_input",div = 1000}, -- cgit v1.2.3