X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fshow%2Fdx.pl;h=4f71c13e51d69adf01d86e40b3c3e3af405b4fab;hb=b054e5b2706153b62ac8f05a70c85f8f5253bf8b;hp=7e4d3a3587e8d7c655820f5c560dd1d5979130d3;hpb=c83b1ca22765fc07e5adcdc8dac24cbd066c9b95;p=spider.git diff --git a/cmd/show/dx.pl b/cmd/show/dx.pl index 7e4d3a35..4f71c13e 100644 --- a/cmd/show/dx.pl +++ b/cmd/show/dx.pl @@ -41,6 +41,8 @@ sub handle dbg("sh/dx list: " . join(" ", @list)) if isdbg('sh/dx'); + +# $DB::single=1; while (@list) { # next field $f = shift @list; @@ -162,7 +164,7 @@ sub handle # now do the search - if ($self->{_nospawn}) { + if ($self->{_nospawn} || ($Spot::spotcachedays && !$expr && $from == 0 && $fromday == 0 && $today == 0)) { my @res = Spot::search($expr, $fromday, $today, $from, $to, $user, $dofilter, $self); my $ref; my @dx; @@ -175,7 +177,7 @@ sub handle push @out, DXCommandmode::format_dx_spot($self, @$ref); } else { - push @out, Spot::formatl(@$ref); + push @out, Spot::formatl($self->{width}, @$ref); } } } @@ -197,7 +199,7 @@ sub handle push @out, DXCommandmode::format_dx_spot($self, @$ref); } else { - push @out, Spot::formatl(@$ref); + push @out, Spot::formatl($self->{width}, @$ref); } } }