X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fshow%2Fmsg_status.pl;h=7711886075507d5d5d87787a3afe399001c38930;hb=refs%2Fheads%2Fnewpc92timings;hp=5a2e7e07e4934d7e694f01ca014a5a4d436f3913;hpb=f939c447ca5ef37073054a73e50b48a63533a9bc;p=spider.git diff --git a/cmd/show/msg_status.pl b/cmd/show/msg_status.pl index 5a2e7e07..77118860 100644 --- a/cmd/show/msg_status.pl +++ b/cmd/show/msg_status.pl @@ -3,19 +3,30 @@ # # Copyright (c) 2000 Dirk Koopman G1TLH # -# $Id$ # -my $self = shift; +# +my ($self, $line) = @_; return (0, $self->msg('e5')) if $self->priv < 5; my @out; -push @out, "Work Queue"; -for (keys %DXMsg::work) { - push @out, "$_ : $DXMsg::work{$_}\n"; +if (!$line || $line =~ /^b/i) { + push @out, "Busy Queue"; + push @out, "----------"; + for (keys %DXMsg::busy) { + my $r = $DXMsg::busy{$_}; + push @out, "$_ : $r->{msgno}, $r->{from} -> $r->{to}, $r->{subject}\n"; + } } -push @out, "Busy Queue"; -for (keys %DXMsg::busy) { - push @out, "$_ : $DXMsg::busy{$_}\n"; +if (!$line || $line =~ /^w/i) { + push @out, "Work Queue"; + push @out, "----------"; + for (keys %DXMsg::work) { + my $r = $DXMsg::work{$_}; + my $n = @{$r->{lines}}; + push @out, "$_ : msgno $r->{msgno}, total lines $n, count $r->{count}\n"; + push @out, "$_ : stream $r->{stream}, tonode $r->{tonode}, fromnode $r->{fromnode}\n"; + } } + return (0, @out);