marsadm: adjust report to masses of peers

This commit is contained in:
Thomas Schoebel-Theuer 2020-07-31 19:48:45 +02:00
parent 62c542bad1
commit a6167603ad
1 changed files with 6 additions and 1 deletions

View File

@ -1810,7 +1810,12 @@ sub wait_cluster {
foreach my $peer (keys(%old_status)) { foreach my $peer (keys(%old_status)) {
$progress{$peer} = $non_participating ? 1 : 0; $progress{$peer} = $non_participating ? 1 : 0;
} }
lprint "Wait for answers from " . join(",", sort alphanum_cmp keys(%old_status)) . "\n" if %old_status; my $count = scalar(keys(%old_status));
if ($count && $count < 10) {
lprint "Wait for answers from " . join(",", sort alphanum_cmp keys(%old_status)) . "\n";
} else {
lprint "Wait for answers from $count peers\n";
}
my $delta = $window > 0 ? $window / 2 : 30; my $delta = $window > 0 ? $window / 2 : 30;
while (1) { while (1) {
my $dead_count = 0; my $dead_count = 0;