X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fstat%2Fmsg.pl;h=da4a726248cab01d9825682e2622bdab4d53e272;hb=a38e5ea93005099bdd5486fda443595d20a26e13;hp=f8bed015e6ce84cceaae997a9aa66dc6f2e4ed6e;hpb=76b7a9c06def95cc7a69ccbb1f1ea8c613f095a0;p=spider.git diff --git a/cmd/stat/msg.pl b/cmd/stat/msg.pl index f8bed015..da4a7262 100644 --- a/cmd/stat/msg.pl +++ b/cmd/stat/msg.pl @@ -18,12 +18,15 @@ if (@list == 0) { foreach $ref (sort {$a->to cmp $b->to} DXMsg::get_all_busy) { my $msgno = $ref->msgno; my $stream = $ref->stream; - my $lines = scalar $ref->lines; + my $lref = $ref->lines; + my $lines = 0; + $lines = @$lref if $lref; my $count = $ref->count; + my $to = $ref->to; my $lastt = $ref->lastt ? " Last Processed: " . cldatetime($ref->lastt) : ""; my $waitt = $ref->waitt ? " Waiting since: " . cldatetime($ref->waitt) : ""; - push @out, " $call -> msg: $msgno stream: $stream Count: $count Lines: $lines$lastt$waitt"; + push @out, " $call -> $to msg: $msgno stream: $stream Count: $count Lines: $lines$lastt$waitt"; } } else { foreach my $msgno (@list) {