X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fshow%2Fdup_eph.pl;h=cc0b21495a12547ab37599aa31572ee401294b5e;hb=49a14209678e26e31b2a9c89aec330c1a7a87b80;hp=c8abccc1f24c64e925b4f850ac5c7c5a53761626;hpb=18a60dc227c9bc9926fd925e5219355fe2a80c98;p=spider.git diff --git a/cmd/show/dup_eph.pl b/cmd/show/dup_eph.pl index c8abccc1..cc0b2149 100644 --- a/cmd/show/dup_eph.pl +++ b/cmd/show/dup_eph.pl @@ -9,4 +9,15 @@ my $self = shift; my $line = shift; return (1, $self->msg('e5')) unless $self->priv >= 9; -return (1, DXProt::eph_list $line); +my $regex = $line; +my @out; +my %list = DXProt::eph_list(); + +for (keys %list ) { + if ($regex) { + next unless /$regex/i; + } + push @out, ztime($list{$_}) . ": $_"; +} +return (1, sort @out); +