X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fshow%2Fdx.pl;h=a7ee33d5e1062f5b5651a12be4df7cf5eb29ab36;hb=8e14149148baba63ce5ae2b95aacda8ab6dd0d87;hp=bad8ffde0894634b51009a74a63ad903e23e7e17;hpb=743a03b3b060fbff8579503647a01722fb634cb1;p=spider.git diff --git a/cmd/show/dx.pl b/cmd/show/dx.pl index bad8ffde..a7ee33d5 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} || ($Spot::spotcachedays && !$expr && $from == 0 && $fromday == 0 && $today == 0)) { + if (($self->{_nospawn} || $main::is_win == 1) || ($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); } } }