git-svn-id: svn://svn.valgrind.org/valgrind/trunk@270
# Stop when we've reached all the thresholds
my $reached_all_thresholds = 1;
- foreach my $i (scalar @thresholds - 1) {
+ foreach my $i (0 .. scalar @thresholds - 1) {
my $prop = $curr_totals[$i] * 100 / $summary_CC->[$sort_order[$i]];
$reached_all_thresholds &= ($prop >= $thresholds[$i]);
}
# Stop when we've reached all the thresholds
my $reached_all_thresholds = 1;
- foreach my $i (scalar @thresholds - 1) {
+ foreach my $i (0 .. scalar @thresholds - 1) {
my $prop = $curr_totals[$i] * 100 / $summary_CC->[$sort_order[$i]];
$reached_all_thresholds &= ($prop >= $thresholds[$i]);
}