diff options
author | jao <jao@gnu.org> | 2016-08-11 18:22:13 +0200 |
---|---|---|
committer | jao <jao@gnu.org> | 2016-08-11 18:22:13 +0200 |
commit | 90cc2c33676efa0fb0936ec63868cf6168889f3e (patch) | |
tree | a5e3b9287859689a99d0e662e7ec78a1e82d1c41 /src/Plugins/Monitors/Batt.hs | |
parent | 75b954d8556efc18a9b829bb1c3246c59f15eab7 (diff) | |
download | xmobar-90cc2c33676efa0fb0936ec63868cf6168889f3e.tar.gz xmobar-90cc2c33676efa0fb0936ec63868cf6168889f3e.tar.bz2 |
Battery: report Full instead of Idle when the battery looks full
Diffstat (limited to 'src/Plugins/Monitors/Batt.hs')
-rw-r--r-- | src/Plugins/Monitors/Batt.hs | 2 |
1 files changed, 1 insertions, 1 deletions
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 |