Fix missing limit total number of URLs shown for a user to TopNumber. Thanks to Graham Wing for the report.

This commit is contained in:
Gilles Darold 2016-08-30 22:14:54 +02:00
parent 59f67c05a3
commit e2a8293fdf

View File

@ -4633,6 +4633,7 @@ sub _print_user_detail
};
$total_duration = abs($total_duration);
my $i = 0;
foreach my $url (sort { $url_stat{$b}{"$self->{OrderUrl}"} <=> $url_stat{$a}{"$self->{OrderUrl}"} } keys %url_stat) {
my $h_percent = '0.0';
$h_percent = sprintf("%2.2f", ($url_stat{$url}{hits}/$total_hit) * 100) if ($total_hit);
@ -4692,6 +4693,8 @@ sub _print_user_detail
} if ($self->{CostPrice});
print $$out qq{
</tr>};
$i++;
last if ($i > $self->{TopNumber});
}
my $sortpos = 1;
$sortpos = 2 if ($self->{OrderUrl} eq 'bytes');