diff options
author | Eric Wong <bofh@yhbt.net> | 2020-01-06 09:54:50 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2020-01-06 09:56:28 +0000 |
commit | 85486f9af18e4f249f23253e3b251e685b323912 (patch) | |
tree | bb98971324a6416d782ec3deab39e4b404cda6c3 /examples | |
parent | 6ec35b0be879970931a67f5aa84b0e12099b12fd (diff) | |
download | raindrops-85486f9af18e4f249f23253e3b251e685b323912.tar.gz |
Newer rubies have more warnings
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/linux-listener-stats.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/linux-listener-stats.rb b/examples/linux-listener-stats.rb index 1008995..7e767da 100755 --- a/examples/linux-listener-stats.rb +++ b/examples/linux-listener-stats.rb @@ -15,7 +15,6 @@ end usage = "Usage: #$0 [-d DELAY] [-t QUEUED_THRESHOLD] ADDR..." ARGV.size > 0 or abort usage delay = false -all = false queued_thresh = -1 # "normal" exits when driven on the command-line trap(:INT) { exit 130 } @@ -25,7 +24,7 @@ OptionParser.new('', 24, ' ') do |opts| opts.banner = usage opts.on('-d', '--delay=DELAY', Float) { |n| delay = n } opts.on('-t', '--queued-threshold=INT', Integer) { |n| queued_thresh = n } - opts.on('-a', '--all') { all = true } + opts.on('-a', '--all') { } # noop opts.parse! ARGV end |