mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-11 13:40:07 +00:00
sprintf rudundancy warnings
This commit is contained in:
@@ -3530,8 +3530,8 @@ sub shorten {
|
||||
}
|
||||
return sprintf(
|
||||
$num =~ m/\./ || $n
|
||||
? "%.${p}f%s"
|
||||
: '%d',
|
||||
? '%1$.'.$p.'f%2$s'
|
||||
: '%1$d',
|
||||
$num, $units[$n]);
|
||||
}
|
||||
|
||||
@@ -4918,11 +4918,10 @@ sub new {
|
||||
last_reported => $args{start},
|
||||
fraction => 0, # How complete the job is
|
||||
callback => sub {
|
||||
my ($fraction, $elapsed, $remaining, $eta) = @_;
|
||||
my ($fraction, $elapsed, $remaining) = @_;
|
||||
printf STDERR "$name: %3d%% %s remain\n",
|
||||
$fraction * 100,
|
||||
Transformers::secs_to_time($remaining),
|
||||
Transformers::ts($eta);
|
||||
Transformers::secs_to_time($remaining);
|
||||
},
|
||||
%args,
|
||||
};
|
||||
|
Reference in New Issue
Block a user