about summary refs log tree commit homepage
path: root/examples/linux-listener-stats.rb
diff options
context:
space:
mode:
authorEric Wong <bofh@yhbt.net>2020-01-06 09:54:50 +0000
committerEric Wong <e@80x24.org>2020-01-06 09:56:28 +0000
commit85486f9af18e4f249f23253e3b251e685b323912 (patch)
treebb98971324a6416d782ec3deab39e4b404cda6c3 /examples/linux-listener-stats.rb
parent6ec35b0be879970931a67f5aa84b0e12099b12fd (diff)
downloadraindrops-85486f9af18e4f249f23253e3b251e685b323912.tar.gz
Newer rubies have more warnings
Diffstat (limited to 'examples/linux-listener-stats.rb')
-rwxr-xr-xexamples/linux-listener-stats.rb3
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