about summary refs log tree commit homepage
path: root/examples
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-02-28 17:14:04 -0800
committerEric Wong <normalperson@yhbt.net>2011-03-01 14:09:11 -0800
commit03c75f547db2d40ea29b5753359bb0df210834f9 (patch)
tree67e7703a6b5259bb0680db17c273d0c102d2ec20 /examples
parent1c3e0a2575c0644a7fca02bbe865e2ce421f5adb (diff)
downloadraindrops-03c75f547db2d40ea29b5753359bb0df210834f9.tar.gz
Sometimes sleeping for one second between reads is too much...
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/linux-listener-stats.rb2
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