summaryrefslogtreecommitdiffhomepage
path: root/src/Plugins/Monitors
diff options
context:
space:
mode:
Diffstat (limited to 'src/Plugins/Monitors')
-rw-r--r--src/Plugins/Monitors/Batt.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Plugins/Monitors/Batt.hs b/src/Plugins/Monitors/Batt.hs
index 5dc305f..0469ac2 100644
--- a/src/Plugins/Monitors/Batt.hs
+++ b/src/Plugins/Monitors/Batt.hs
@@ -188,9 +188,9 @@ readBatteries opts bfs =
(sort (map status bats))
acst = mostCommonDef Unknown $ filter (Unknown/=) statuses
racst | acst /= Unknown = acst
- | not ac = Discharging
- | left == 0 = Full
- | otherwise = Charging
+ | time == 0 = Idle
+ | ac = Charging
+ | otherwise = Discharging
return $ if isNaN left then NA else Result left watts time racst
runBatt :: [String] -> Monitor String