mirror of
https://github.com/darold/squidanalyzer.git
synced 2025-07-31 01:44:29 +02:00
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:
parent
59f67c05a3
commit
e2a8293fdf
@ -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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user