version 1.76.2.4, 2008/12/25 02:22:08
|
version 1.76.2.5, 2008/12/26 16:34:43
|
Line 4997 sub modify_serverstatuses {
|
Line 4997 sub modify_serverstatuses {
|
} |
} |
my @currmachines = split(/,/,$currserverstatus{$type}{'machines'}); |
my @currmachines = split(/,/,$currserverstatus{$type}{'machines'}); |
my @newmachines = split(/,/,$newserverstatus{$type}{'machines'}); |
my @newmachines = split(/,/,$newserverstatus{$type}{'machines'}); |
foreach my $item (@currmachines) { |
if (@currmachines > 0) { |
if (!grep(/^\Q$item\E$/,@newmachines)) { |
if (@newmachines > 0) { |
|
foreach my $item (@currmachines) { |
|
if (!grep(/^\Q$item\E$/,@newmachines)) { |
|
$changes{$type}{'machines'} = 1; |
|
last; |
|
} |
|
} |
|
foreach my $item (@newmachines) { |
|
if (!grep(/^\Q$item\E$/,@currmachines)) { |
|
$changes{$type}{'machines'} = 1; |
|
last; |
|
} |
|
} |
|
} else { |
$changes{$type}{'machines'} = 1; |
$changes{$type}{'machines'} = 1; |
last; |
|
} |
} |
|
} elsif (@newmachines > 0) { |
|
$changes{$type}{'machines'} = 1; |
} |
} |
foreach my $item (@newmachines) { |
|
if (!grep(/^\Q$item\E$/,@currmachines)) { |
|
$changes{$type}{'machines'} = 1; |
|
last; |
|
} |
|
} |
|
|
|
} |
} |
} |
} |
if (keys(%changes) > 0) { |
if (keys(%changes) > 0) { |