Commits

Maciej Fijalkowski committed 84424cf

minor fixes

  • Participants
  • Parent commits 57a5653

Comments (0)

Files changed (1)

File asynchammer/asynchammer.py

+
+from twisted.internet import epollreactor
+epollreactor.install()
 
 import time
 from optparse import OptionParser
 def main():
     parser = OptionParser()
     parser.add_option('-c', '--concurrent', dest='concurrency',
-                      default=10)
-    parser.add_option('-m', '--max', dest='max', default=1000)
+                      default=10, type=int)
+    parser.add_option('-m', '--max', dest='max', default=1000, type=int)
     (options, args) = parser.parse_args()
     factory = HammerFactory(options.max)
     for i in xrange(options.concurrency):