about summary refs log tree commit homepage
path: root/examples/linux-listener-stats.rb
diff options
context:
space:
mode:
Diffstat (limited to 'examples/linux-listener-stats.rb')
-rwxr-xr-xexamples/linux-listener-stats.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/linux-listener-stats.rb b/examples/linux-listener-stats.rb
index 1008995..5f67633 100755
--- a/examples/linux-listener-stats.rb
+++ b/examples/linux-listener-stats.rb
@@ -1,5 +1,6 @@
 #!/usr/bin/ruby
 # -*- encoding: binary -*-
+# frozen_string_literal: false
 $stdout.sync = $stderr.sync = true
 # this is used to show or watch the number of active and queued
 # connections on any listener socket from the command line
@@ -15,7 +16,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 +25,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