diff options
Diffstat (limited to 'src/Plugins/Monitors')
| -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 a472045..c276e6b 100644 --- a/src/Plugins/Monitors/Batt.hs +++ b/src/Plugins/Monitors/Batt.hs @@ -124,7 +124,7 @@ readBattery files =                          (3600 * b / 1000000) -- wattseconds                          (c / 1000000) -- volts                          (if c > 0 then (d / c) else -1) -- amperes -    where grab = fmap (read . B.unpack) . B.readFile +    where grab f = catch (fmap (read . B.unpack) $ B.readFile f) (\_ -> return 0)  readBatteries :: BattOpts -> [Files] -> IO Result  readBatteries opts bfs = | 
