Skip to content

Commit

Permalink
默认只允许在win及linux系统使用多进程
Browse files Browse the repository at this point in the history
  • Loading branch information
moonshawdo committed Jun 16, 2014
1 parent 68a6c26 commit ed2b093
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion checkip.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,11 @@
except ImportError:
g_usegevent = 0

g_useprocess = 5
#默认只允许win及linux系统开启多进程处理
if sys.platform == "win32" or sys.platform.startswith("linux"):
g_useprocess = 5
else:
g_useprocess = 0

"""
ip_str_list为需要查找的IP地址,第一组的格式:
Expand Down

0 comments on commit ed2b093

Please sign in to comment.