mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-10-20 09:40:38 +00:00
Removed ceiling argument passing, simply round up threshold now. Simplified test accordingly
This commit is contained in:
@@ -51,7 +51,6 @@ sub new {
|
||||
_check_and_set_vals(
|
||||
vars => $max_val_for,
|
||||
get_status => $args{get_status},
|
||||
ceiling => $args{ceiling},
|
||||
threshold_factor => 0.2, # +20%
|
||||
);
|
||||
}
|
||||
@@ -224,7 +223,7 @@ sub _check_and_set_vals {
|
||||
else {
|
||||
PTDEBUG && _d('Initial', $var, 'value:', $init_val);
|
||||
$val = ($init_val * $threshold_factor) + $init_val;
|
||||
$vars->{$var} = $args{ceiling} ? int(ceil($val)) : int($val);
|
||||
$vars->{$var} = int(ceil($val));
|
||||
}
|
||||
PTDEBUG && _d('Wait if', $var, '>=', $val);
|
||||
}
|
||||
|
Reference in New Issue
Block a user