From 90cc2c33676efa0fb0936ec63868cf6168889f3e Mon Sep 17 00:00:00 2001 From: jao Date: Thu, 11 Aug 2016 18:22:13 +0200 Subject: Battery: report Full instead of Idle when the battery looks full --- src/Plugins/Monitors/Batt.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Plugins/Monitors/Batt.hs b/src/Plugins/Monitors/Batt.hs index 38c325f..5dc305f 100644 --- a/src/Plugins/Monitors/Batt.hs +++ b/src/Plugins/Monitors/Batt.hs @@ -189,7 +189,7 @@ readBatteries opts bfs = acst = mostCommonDef Unknown $ filter (Unknown/=) statuses racst | acst /= Unknown = acst | not ac = Discharging - | left == 0 = Idle + | left == 0 = Full | otherwise = Charging return $ if isNaN left then NA else Result left watts time racst -- cgit v1.2.3