From 03c75f547db2d40ea29b5753359bb0df210834f9 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 28 Feb 2011 17:14:04 -0800 Subject: linux-tcp-listener-stats: fix fractional second delays Sometimes sleeping for one second between reads is too much... --- examples/linux-listener-stats.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/linux-listener-stats.rb b/examples/linux-listener-stats.rb index 73b100f..5ade54d 100755 --- a/examples/linux-listener-stats.rb +++ b/examples/linux-listener-stats.rb @@ -16,7 +16,7 @@ trap(:PIPE) { exit 0 } opts = OptionParser.new('', 24, ' ') do |opts| opts.banner = usage - opts.on('-d', '--delay=delay') { |nr| delay = nr.to_i } + opts.on('-d', '--delay=delay') { |nr| delay = nr.to_f } opts.parse! ARGV end -- cgit v1.2.3-24-ge0c7