From: Dirk Koopman Date: Wed, 11 Jul 2007 15:15:52 +0000 (+0100) Subject: improve speed of sh/c/n (a bit)[probably]. X-Git-Tag: 1.55~102 X-Git-Url: http://www.dxcluster.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=d4aacffb5581c9fc338833aebc996c27d3f16ada;hp=4eef5ad5a1da19f091f3c6f1e50c60772db40a4c;p=spider.git improve speed of sh/c/n (a bit)[probably]. --- diff --git a/Changes b/Changes index e80e894a..dfe89c6a 100644 --- a/Changes +++ b/Changes @@ -1,3 +1,5 @@ +11Jul07======================================================================= +1. improve speed of sh/c/n 09Jul07======================================================================= 1. remove check for PC93 from legacy nodes. This will allow PC10s to be propagated correctly. Probably. diff --git a/cmd/show/configuration.pl b/cmd/show/configuration.pl index 09521cb6..746ab4b0 100644 --- a/cmd/show/configuration.pl +++ b/cmd/show/configuration.pl @@ -16,15 +16,18 @@ my @val; push @out, $self->msg('showconf'); if ($list[0] && $list[0] =~ /^NOD/) { - my @ch = sort {$a->call cmp $b->call} DXChannel::get_all_nodes(); + my %ch; my $dxchan; - foreach $dxchan (@ch) { - @val = sort {$a->call cmp $b->call} grep { $_->dxchan && $_->dxchan == $dxchan } @nodes; + foreach my $n (@nodes) { + $dxchan = $n->dxchan; + push @{$ch{$dxchan->call}}, $n; + } + + foreach my $call (sort keys %ch) { + @val = sort {$a->call cmp $b->call} @{$ch{$call}}; @l = (); - my $call = $dxchan->call; - $call ||= '???'; - $call = "($call)" unless $dxchan->here; + $call = "($call)" unless DXChannel::get($call)->here; push @l, $call; foreach my $ref (@val) { diff --git a/perl/Version.pm b/perl/Version.pm index 93cd53b0..1489fa48 100644 --- a/perl/Version.pm +++ b/perl/Version.pm @@ -11,6 +11,6 @@ use vars qw($version $subversion $build); $version = '1.54'; $subversion = '0'; -$build = '112'; +$build = '113'; 1;