From ec9ebb347930527fb1e2d9a99457dfae9e15c997 Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Mon, 31 Jan 2011 21:21:13 +0000 Subject: [PATCH] Set threads to 4 when optimization switch is provided, -o --- lib/core/option.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/option.py b/lib/core/option.py index d755f829f..679a93f9b 100644 --- a/lib/core/option.py +++ b/lib/core/option.py @@ -1121,7 +1121,7 @@ def __cleanupOptions(): #conf.predictOutput = True conf.keepAlive = True conf.nullConnection = not conf.textOnly - conf.threads = 4 if conf.threads < 2 else conf.threads + conf.threads = 4 if conf.threads < 4 else conf.threads if conf.realTest: conf.userAgentsFile = paths.USER_AGENTS