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:
Brian Fraser
2012-01-10 16:10:50 -03:00
parent eaae370f81
commit f173069109
2 changed files with 2 additions and 2 deletions

View File

@@ -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,