mirror of
https://github.com/percona/percona-toolkit.git
synced 2026-02-27 02:00:57 +08:00
Fixes as per Baron's review.
This commit is contained in:
@@ -129,7 +129,6 @@ sub clear_state {
|
||||
sub compute_devs_in_group {
|
||||
my ($self) = @_;
|
||||
my $stats = $self->stats_for();
|
||||
my $re = $self->device_regex();
|
||||
return scalar grep {
|
||||
# Got stats for that device, and it matches the devices re
|
||||
$stats->{$_} && $self->_print_device_if($_)
|
||||
@@ -163,6 +162,8 @@ sub _calc_stats_for_deltas {
|
||||
}
|
||||
}
|
||||
|
||||
return unless $delta_for && %{$delta_for};
|
||||
|
||||
my $in_progress = $delta_for->{ios_in_progress};
|
||||
my $tot_in_progress = 0;
|
||||
my $devs_in_group = $self->compute_devs_in_group() || 1;
|
||||
|
||||
Reference in New Issue
Block a user