Don't output segmatch stats when cnt_candidates is zero

Signed-off-by: Clifford Wolf <clifford@clifford.at>
Signed-off-by: Tim 'mithro' Ansell <mithro@mithis.com>
This commit is contained in:
Clifford Wolf 2017-11-12 07:28:01 +00:00 committed by Tim 'mithro' Ansell
parent 5a91f3988a
commit de1f909a37
1 changed files with 6 additions and 3 deletions

View File

@ -311,9 +311,12 @@ help:
printf("#of const0 tags: %d\n", cnt_const0);
printf("#of const1 tags: %d\n", cnt_const1);
printf("min #of candidates: %d\n", min_candidates);
printf("max #of candidates: %d\n", max_candidates);
printf("avg #of candidates: %.3f\n", avg_candidates);
if (cnt_candidates) {
printf("min #of candidates: %d\n", min_candidates);
printf("max #of candidates: %d\n", max_candidates);
printf("avg #of candidates: %.3f\n", avg_candidates);
}
return 0;
}