marsadm: fix annoying warning

This commit is contained in:
Thomas Schoebel-Theuer 2020-11-24 14:18:36 +01:00 committed by Thomas Schoebel-Theuer
parent 6fed821b6e
commit 4e6ef0751b

View File

@ -5013,6 +5013,7 @@ sub _get_min_time {
my %status = get_alive_links($res, "time", "*");
foreach my $peer (keys(%status)) {
my $stamp = $status{$peer};
$stamp = 0 if (!defined($stamp) || $stamp eq "");
$min_time = $stamp if $stamp < $min_time;
}
# protect against dead / decommissioned peers