projects
/
irspy-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6533a59
)
do not try to print more rows than available
author
Wolfram Schneider
<wosch@indexdata.dk>
Fri, 23 Apr 2010 15:42:08 +0000
(17:42 +0200)
committer
Wolfram Schneider
<wosch@indexdata.dk>
Fri, 23 Apr 2010 15:42:08 +0000
(17:42 +0200)
web/htdocs/details/stats.mc
patch
|
blob
|
history
diff --git
a/web/htdocs/details/stats.mc
b/web/htdocs/details/stats.mc
index
97eb639
..
e50f56a
100644
(file)
--- a/
web/htdocs/details/stats.mc
+++ b/
web/htdocs/details/stats.mc
@@
-83,7
+83,7
@@
$col3 => undef
my $hr;
$hr = $stats->{$data};
my @sorted = sort { $hr->{$b} <=> $hr->{$a} || $a <=> $b } keys %$hr;
-my $n = @sorted; $n = $maxrows if @sorted > 10;
+my $n = @sorted; $n = $maxrows if @sorted > 10 && $n > $maxrows;
foreach my $i (1..$n) {
my $key = $sorted[$i-1];
</%perl>