mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-11 13:40:07 +00:00
Stop using /(?=)/ since /.+/ is good enough.
Originally, DiskstatsMenu differentiated between an empty pattern entered by the user (which in the shell version meant "match all") and any other valid pattern by replacing it with /(?=)/. However, Diskstats now carries the original string, inside the OptionParser object, so the above was redundant.
This commit is contained in:
@@ -45,7 +45,7 @@ sub new {
|
||||
# Defaults
|
||||
filename => '/proc/diskstats',
|
||||
column_regex => qr/cnc|rt|busy|prg|time|io_s/,
|
||||
device_regex => qr/(?=)/,
|
||||
device_regex => qr/.+/,
|
||||
block_size => 512,
|
||||
out_fh => \*STDOUT,
|
||||
filter_zeroed_rows => $o->get('zero-rows') ? undef : 1,
|
||||
|
Reference in New Issue
Block a user