X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fshow%2Flog.pl;h=2abe825762e531a09dfa53f89529c5cc1037f360;hb=96f67f30b496aafcb4276f9fe9cf0fa9f572318b;hp=29d2b51232aca51f3bae521e98ce2ac42b18d1e5;hpb=68fa2f8ae34d78464cb196851a7ce09ebef61b1b;p=spider.git diff --git a/cmd/show/log.pl b/cmd/show/log.pl index 29d2b512..2abe8257 100644 --- a/cmd/show/log.pl +++ b/cmd/show/log.pl @@ -24,10 +24,10 @@ sub handle next if $from && $to > $from; } unless ($to) { - ($to) = $f =~ /^(\d+)$/o if !$to; # is it a to count? + ($to) = $f =~ /^(\d+)$/ if !$to; # is it a to count? next if $to; } - unless ($who) { + unless ($f =~ /^\d+$/) { $who = $f; next if $who; } @@ -41,7 +41,6 @@ sub handle $who = $self->call; } - @out = $self->spawn_cmd("show/log $cmdline", \&DXLog::print, args => [$from, $to, $main::systime, undef, $who]); - - return (1, @out); + return (1, DXLog::print($from, $to, $main::systime, undef, $who)) if $self->{_nospawn}; + return (1, $self->spawn_cmd("show/log $cmdline", \&DXLog::print, args => [$from, $to, $main::systime, undef, $who])); }