<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -38,7 +38,7 @@ opts = OptionParser.new do |opts|
     options[:single_threaded] = true
   end
   
-  opts.on(&quot;--threadpool COUNT&quot;, &quot;Number of threads to run all operations in&quot;) do |tps|
+  opts.on(&quot;--threadpool COUNT&quot;, Integer, &quot;Number of threads to run all operations in&quot;) do |tps|
     options[:threadpool_size] = tps
   end
   </diff>
      <filename>bin/nanite-agent</filename>
    </modified>
    <modified>
      <diff>@@ -10,7 +10,7 @@ module Nanite
       @identity = identity
       @options = options
       @evmclass = EM
-      @evmclass.threadpool_size = @options[:threadpool_size].to_i || 20
+      @evmclass.threadpool_size = (@options[:threadpool_size] || 20).to_i
     end
 
     def dispatch(deliverable)
@@ -89,4 +89,4 @@ module Nanite
       error
     end
   end
-end
\ No newline at end of file
+end</diff>
      <filename>lib/nanite/dispatcher.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>4074f9c70007bedc4ab9ee617b325861ca39e8a9</id>
    </parent>
  </parents>
  <author>
    <name>Chris Gaffney</name>
    <email>cgaffney@crayoninterface.com</email>
  </author>
  <url>http://github.com/ezmobius/nanite/commit/7b77a86a879631ea731a94ac32112f88cfd0037a</url>
  <id>7b77a86a879631ea731a94ac32112f88cfd0037a</id>
  <committed-date>2009-08-08T10:00:39-07:00</committed-date>
  <authored-date>2009-08-08T10:00:39-07:00</authored-date>
  <message>Properly handle --threadpool if it is not given.

nil.to_i returns 0. 0 || 20 =&gt; 0.
Also added checking that the given value is an integer.</message>
  <tree>c8099210cb5a0c8a791cd3760cbf9bbbe8301e16</tree>
  <committer>
    <name>Chris Gaffney</name>
    <email>cgaffney@crayoninterface.com</email>
  </committer>
</commit>
