mirror of
https://github.com/percona/percona-toolkit.git
synced 2026-04-11 01:01:36 +08:00
Removed indirect object syntax from the modulino portion of pt-tcp-model
This commit is contained in:
@@ -1902,7 +1902,7 @@ sub main {
|
||||
# ##########################################################################
|
||||
# Get configuration information.
|
||||
# ##########################################################################
|
||||
my $o = new OptionParser();
|
||||
my $o = OptionParser->new();
|
||||
$o->get_specs();
|
||||
$o->get_opts();
|
||||
if ( !$o->get('help') ) {
|
||||
@@ -1922,13 +1922,13 @@ sub main {
|
||||
# ########################################################################
|
||||
# Set up objects and variables.
|
||||
# ########################################################################
|
||||
my $fi = new FileIterator();
|
||||
my $fi = FileIterator->new();
|
||||
my $parser;
|
||||
if ( $o->get('type') eq 'tcpdump' ) { # Default: parse tcpdump
|
||||
$parser = new SimpleTCPDumpParser(watch => $o->get('watch-server'));
|
||||
$parser = SimpleTCPDumpParser->new(watch => $o->get('watch-server'));
|
||||
}
|
||||
else {
|
||||
$parser = new TCPRequestAggregator(
|
||||
$parser = TCPRequestAggregator->new(
|
||||
interval => $o->get('run-time'),
|
||||
quantile => $o->get('quantile')
|
||||
);
|
||||
@@ -1963,7 +1963,7 @@ sub main {
|
||||
# #####################################################################
|
||||
my $pr;
|
||||
if ( $o->get('progress') && $filename && -e $filename ) {
|
||||
$pr = new Progress(
|
||||
$pr = Progress->new(
|
||||
jobsize => -s $filename,
|
||||
spec => $o->get('progress'),
|
||||
name => $filename,
|
||||
|
||||
Reference in New Issue
Block a user