From 4fc6dffe94d01a4696bf1f7420b79b05ecf5d35c Mon Sep 17 00:00:00 2001 From: "Adrian C. (anrxc)" Date: Mon, 15 Mar 2010 17:54:28 +0100 Subject: [PATCH] wifi: return 0 not N/A when channel is unavailable --- widgets/wifi.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/widgets/wifi.lua b/widgets/wifi.lua index ca578d1..61dee12 100644 --- a/widgets/wifi.lua +++ b/widgets/wifi.lua @@ -29,7 +29,7 @@ local function worker(format, warg) local winfo = { ["{ssid}"] = "N/A", ["{mode}"] = "N/A", - ["{chan}"] = "N/A", + ["{chan}"] = 0, ["{rate}"] = 0, ["{link}"] = 0, ["{sign}"] = 0