]> git.ipfire.org Git - thirdparty/valgrind.git/commit
If Massif's --threshold value was less than 1.0, in lines like this:
authorNicholas Nethercote <njn@valgrind.org>
Thu, 27 Jan 2011 23:07:56 +0000 (23:07 +0000)
committerNicholas Nethercote <njn@valgrind.org>
Thu, 27 Jan 2011 23:07:56 +0000 (23:07 +0000)
commitc3ae8f0ad3f28f8b4b5b7ff965c16e8102bc70d9
treec5f614746ca3d890cec321049d3c0631109674cc
parent4e4990009a7edf9863d1c8e5ef417748aa8fdffe
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
massif/ms_main.c
massif/tests/insig.post.exp
massif/tests/insig.vgtest