added french changes
[spider.git] / cmd / show / wcy.pl
1 #
2 # print out the wcy stats
3 #
4 # Copyright (c) 2000 - Dirk Koopman G1TLH
5 #
6 # $Id$
7 #
8 my $self = shift;
9
10 my $cmdline = shift;
11 my @f = split /\s+/, $cmdline;
12 my $f;
13 my @out;
14 my ($from, $to); 
15
16 $from = 0;
17 while ($f = shift @f) {                 # next field
18         #  print "f: $f list: ", join(',', @list), "\n";
19         if (!$from && !$to) {
20                 ($from, $to) = $f =~ /^(\d+)-(\d+)$/o;         # is it a from -> to count?
21                 next if $from && $to > $from;
22         }
23         if (!$to) {
24                 ($to) = $f =~ /^(\d+)$/o;              # is it a to count?
25                 next if $to;
26         }
27 }
28
29 $from = 1 unless $from;
30 $to = 10 unless $to;
31
32 push @out, $self->msg('wcy3');
33 my @in = WCY::search($from, $to, $main::systime);
34 for (@in) {
35         push @out, WCY::print_item($_);
36 }
37 return (1, @out);
38
39
40
41
42
43
44
45
46
47
48
49