diff options
Diffstat (limited to 'examples/linux-listener-stats.rb')
-rwxr-xr-x | examples/linux-listener-stats.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |