summaryrefslogtreecommitdiffhomepage
path: root/Plugins/Monitors
diff options
context:
space:
mode:
Diffstat (limited to 'Plugins/Monitors')
-rw-r--r--Plugins/Monitors/Wireless.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/Plugins/Monitors/Wireless.hs b/Plugins/Monitors/Wireless.hs
index a17fb11..fe81ab8 100644
--- a/Plugins/Monitors/Wireless.hs
+++ b/Plugins/Monitors/Wireless.hs
@@ -26,6 +26,8 @@ runWireless (iface:_) = do
let essid = wiEssid wi
quality = wiQuality wi
e = if essid == "" then "N/A" else essid
- q <- if quality >= 0 then showWithColors show quality else return " "
+ q <- if quality >= 0
+ then showWithColors show quality
+ else showWithColors' "" (0 :: Int)
parseTemplate [e, q]
runWireless _ = return "" \ No newline at end of file