From 3d2af8a47332235d6556d2d2a40f7392269cf0b0 Mon Sep 17 00:00:00 2001 From: Jose Antonio Ortega Ruiz Date: Sun, 27 Oct 2013 16:20:25 +0100 Subject: New N/A string monitor option (cf. #119) --- src/Plugins/Monitors/Batt.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Plugins/Monitors/Batt.hs') diff --git a/src/Plugins/Monitors/Batt.hs b/src/Plugins/Monitors/Batt.hs index 410aec6..4976b61 100644 --- a/src/Plugins/Monitors/Batt.hs +++ b/src/Plugins/Monitors/Batt.hs @@ -165,7 +165,7 @@ runBatt' bfs args = do do l <- fmtPercent x ws <- fmtWatts w opts suffix d parseTemplate (l ++ [s, fmtTime $ floor t, ws]) - NA -> return "N/A" + NA -> getConfigValue naString where fmtPercent :: Float -> Monitor [String] fmtPercent x = do let x' = minimum [1, x] -- cgit v1.2.3