Moved back to 8 threads.
This commit is contained in:
parent
bf6a213651
commit
63e8405a99
1 changed files with 4 additions and 4 deletions
|
@ -358,10 +358,10 @@ module Import::OTRS2
|
||||||
end
|
end
|
||||||
|
|
||||||
Thread.abort_on_exception = true
|
Thread.abort_on_exception = true
|
||||||
thread_count = 10
|
thread_count = 8
|
||||||
threads = {}
|
threads = {}
|
||||||
count = 0
|
count = 0
|
||||||
locks = { :User => {} }
|
locks = { :User => {} }
|
||||||
(1..thread_count).each {|thread|
|
(1..thread_count).each {|thread|
|
||||||
threads[thread] = Thread.new {
|
threads[thread] = Thread.new {
|
||||||
Thread.current[:thread_no] = thread
|
Thread.current[:thread_no] = thread
|
||||||
|
|
Loading…
Reference in a new issue