X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXCommandmode.pm;h=4091d9e4181df81a6d79527942f19f54f69d4847;hb=a24cc09d8262093df92c767d3010c0a5fd6e42d7;hp=00c82125097dcea4fe077ff4bafc3322d3ea8ccd;hpb=ad222bb929a17f8ad54c567d4f59f68c5d1a8bbd;p=spider.git diff --git a/perl/DXCommandmode.pm b/perl/DXCommandmode.pm index 00c82125..4091d9e4 100644 --- a/perl/DXCommandmode.pm +++ b/perl/DXCommandmode.pm @@ -552,6 +552,7 @@ sub run_cmd if ($package && $self->can("${package}::handle")) { no strict 'refs'; dbg("cmd: package $package") if isdbg('command'); +# Log('cmd', "$self->{call} on $self->{hostname} : '$cmd $args'"); my $t0 = [gettimeofday]; eval { @ans = &{"${package}::handle"}($self, $args) }; if ($@) { @@ -1008,8 +1009,9 @@ sub format_dx_spot my ($slot1, $slot2) = ('', ''); my $clth = 30 + $self->{width} - 80; # allow comment to grow according the screen width - my $comment = substr (($_[3] || ''), 0, $clth); - $comment =~ s/\t/ /g; + my $c = $_[3]; + $c =~ s/\t/ /g; + my $comment = substr (($c || ''), 0, $clth); $comment .= ' ' x ($clth - (length($comment))); if (!$slot1 && $self->{user}->wantgrid) {