diff options
author | Samuel Bronson <naesten@gmail.com> | 2006-10-14 17:58:55 +0000 |
---|---|---|
committer | Samuel Bronson <naesten@gmail.com> | 2006-10-14 17:58:55 +0000 |
commit | 45b6b2e62b49c953ad5da57ce11df59e755104a3 (patch) | |
tree | 350f80e3f26811184e0e37387829586f1f270999 /utils | |
parent | 435d4a45509ef2d703716453c4e64bb513b79006 (diff) | |
download | haskell-45b6b2e62b49c953ad5da57ce11df59e755104a3.tar.gz |
Try to get the right output for nofib-analyse
Diffstat (limited to 'utils')
-rw-r--r-- | utils/nofib-analyse/Main.hs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/nofib-analyse/Main.hs b/utils/nofib-analyse/Main.hs index c81cfb4d81..9e298c9a0e 100644 --- a/utils/nofib-analyse/Main.hs +++ b/utils/nofib-analyse/Main.hs @@ -17,7 +17,7 @@ import Data.FiniteMap import System.Console.GetOpt import System.Exit ( exitWith, ExitCode(..) ) -import Numeric ( showFloat, showEFloat, showSigned ) +import Numeric ( showFloat, showFFloat, showSigned ) import Data.Maybe ( isNothing ) import Data.Char import System.IO @@ -689,14 +689,14 @@ data BoxValue showBox :: BoxValue -> String showBox (RunFailed stat) = show_stat stat showBox (Percentage f) = show_pcntage f -showBox (BoxFloat f) = show f +showBox (BoxFloat f) = showFFloat (Just 2) f "" showBox (BoxInt n) = show (n `div` 1024) ++ "k" showBox (BoxInteger n) = show (n `div` 1024) ++ "k" showBox (BoxString s) = s instance Show BoxValue where { show = showBox } -show_pcntage n = show (n-100) ++ "%" +show_pcntage n = showFFloat (Just 1) (n-100) "%" --show_pcntage n = show_float_signed (n-100) ++ "%" --show_float_signed = showFloat False False True False False Nothing (Just 1) |