From 2217463c0f52280835bf508dd5b768bff56f2b65 Mon Sep 17 00:00:00 2001 From: Krzysztof Kosciuszkiewicz Date: Thu, 12 Jul 2007 03:36:26 +0200 Subject: Get rid of floats in scientific notation. Use 'showDigits n' instead of 'show . takeDigits n'. As this example shows explicit precision specifications would be appreciated ;) darcs-hash:20070712013626-ba08c-868a9d53ab1b8bc120d7c1a9634d3d8c7cb599d7.gz --- Plugins/Monitors/Net.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Plugins/Monitors/Net.hs') diff --git a/Plugins/Monitors/Net.hs b/Plugins/Monitors/Net.hs index 8534a2a..6a7f01f 100644 --- a/Plugins/Monitors/Net.hs +++ b/Plugins/Monitors/Net.hs @@ -71,7 +71,7 @@ netParser = formatNet :: Float -> Monitor String formatNet d = showWithColors f d - where f s = show s ++ "Kb" + where f s = showDigits 1 s ++ "Kb" printNet :: NetDev -> Monitor String printNet nd = -- cgit v1.2.3