Skip to content

Commit

Permalink
Print no change as 0.0%
Browse files Browse the repository at this point in the history
not as +0.0%. Makes the real increases much easier to spot.
  • Loading branch information
Joachim Breitner committed Jan 29, 2014
1 parent 317148f commit d9f1d03
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nofib-analyse/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -887,6 +887,7 @@ data BoxValue

showBox :: BoxValue -> String
showBox (RunFailed stat) = show_stat stat
showBox (Percentage 100) = " 0.0%" -- pattern matching on Float is bad style, but this is not crucial
showBox (Percentage f) = case printf "%.1f%%" (f-100) of
xs@('-':_) -> xs
xs -> '+':xs
Expand Down

0 comments on commit d9f1d03

Please sign in to comment.