fix comparing worker value

This commit is contained in:
Seyeong Kim
2015-02-04 01:23:04 +00:00
parent a6826127bf
commit 52a6eff0bb

View File

@@ -80,7 +80,7 @@ class SwiftIdentityContext(OSContextGenerator):
def __call__(self):
bind_port = config('bind-port')
workers = config('workers')
if workers == '0':
if workers == 0:
import multiprocessing
workers = multiprocessing.cpu_count()
if config('prefer-ipv6'):