diff options
-rwxr-xr-x | bin/compare | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/compare b/bin/compare index fe489abadf..e911f4a6c3 100755 --- a/bin/compare +++ b/bin/compare @@ -36,4 +36,5 @@ maxlen = max(map(len, common)) bonferroni = SIGNIFICANCE_THRESHOLD / len(ps) # Adjust for the fact we've run multiple tests. for ratio, p, key, am, bm in ps: if p < bonferroni: - print '%*s\t%6s -> %6s\t%.2gx' % (maxlen, key, humanize(am), humanize(bm), ratio) + str_ratio = ('%.2gx' if ratio < 1 else '%.3gx') % ratio + print '%*s\t%6s -> %6s\t%s' % (maxlen, key, humanize(am), humanize(bm), str_ratio) |