If Massif's --threshold value was less than 1.0, in lines like this:

  ->00.00% (0B) in 11 places, all below massif's threshold (00.00%)

the threshold would always be incorrectly printed as 00.00%.  This was
because the percentage printing was broken for percentages less than 1.0.
This change fixes this problem, and modifies a test to check for it.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11511 a5019735-40e9-0310-863c-91ae7b9d1cf9
3 files changed