- push @exitstatus, "$o_sync mirror(s) not in sync (from oldest to newest): ".
- join(",", splice(@mirrors,0,$o_sync));
+ my @not_most_recent = grep { $status->{$_}->{'synced'} <=> $status->{$mirrors[-1]}->{'synced'} } @mirrors;
+ $o_sync = scalar @not_most_recent;
+ push @exitstatus, "$o_sync mirror(s) not in sync (from oldest to newest): ".
+ join(", ", @not_most_recent);