mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-25 05:44:59 +00:00
Simplify parse_diskstats_line() and _calc_delta_for(). Use UPPERCASE for constants. Don't save unused values in dev stats array. Use actual values from an OptionParser/pt-diskstats.
This commit is contained in:
@@ -26,7 +26,8 @@ BEGIN {
|
||||
}
|
||||
|
||||
my $o = new OptionParser(description => 'Diskstats');
|
||||
$o->get_specs( File::Spec->catfile($trunk, "bin", "pt-diskstats") );
|
||||
$o->get_specs("$trunk/bin/pt-diskstats");
|
||||
$o->get_opts();
|
||||
|
||||
{
|
||||
my $obj = new Diskstats(OptionParser => $o);
|
||||
@@ -559,3 +560,8 @@ EOF
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
# ###########################################################################
|
||||
# Done.
|
||||
# ###########################################################################
|
||||
exit;
|
||||
|
Reference in New Issue
Block a user