limit the table to the first 100 entries
authorminima <minima>
Sun, 9 Sep 2001 17:18:18 +0000 (17:18 +0000)
committerminima <minima>
Sun, 9 Sep 2001 17:18:18 +0000 (17:18 +0000)
cmd/show/hftable.pl
cmd/show/vhftable.pl

index 2b83994aea6e19f02508eaffc44ef0f529751daa..abd04b0065d165d17d15dbc38eca62ea29b85b68 100644 (file)
@@ -11,6 +11,7 @@ my @f = split /\s+/, $line;
 my @calls;
 my $days = 31;
 my @dxcc;
+my $limit = 100;
 
 push @dxcc, (61..67) if $self->dxcc >= 61 && $self->dxcc < 67;
 push @dxcc, $self->dxcc unless @dxcc;
@@ -65,6 +66,7 @@ for (sort {$list{$b}->[0] <=> $list{$a}->[0] || $a cmp $b} keys %list) {
                push @list, $r;
        }
        push @out, join('|', @list);
+       last if $limit && $nocalls >= $limit;
 }
 
 $nocalls = sprintf "%10s", "$nocalls calls";
index 9849db4a178b4f268a1457c535fc3d05fe89f0eb..61193a846462d329c5b3b085ee63d20ad5bc0efc 100644 (file)
@@ -11,6 +11,7 @@ my @f = split /\s+/, $line;
 my @calls;
 my $days = 31;
 my @dxcc;
+my $limit = 100;
 
 push @dxcc, (61..67) if $self->dxcc >= 61 && $self->dxcc < 67;
 push @dxcc, $self->dxcc unless @dxcc;
@@ -65,6 +66,7 @@ for (sort {$list{$b}->[0] <=> $list{$a}->[0] || $a cmp $b} keys %list) {
                push @list, $r;
        }
        push @out, join('|', @list, "");
+       last if $limit && $nocalls >= $limit;
 }
 
 $nocalls = sprintf "%10s", "$nocalls calls";