mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-20 20:02:38 +09:00
feature #595: changed tm to use new libraries
This commit is contained in:
1 parent
99b22d8e1e
commit
77fd34bf5a
1 file changed
+9
-3
@@ -36,8 +36,12 @@ require 'TMScript'
|
||||
|
||||
class TransferManager < OpenNebulaDriver
|
||||
|
||||
def initialize(plugin, num)
|
||||
super(num, true)
|
||||
def initialize(plugin, options={})
|
||||
@options={
|
||||
:threaded => true
|
||||
}.merge!(options)
|
||||
|
||||
super(num, @options)
|
||||
|
||||
@plugin=plugin
|
||||
|
||||
@@ -80,7 +84,9 @@ tm_conf=ETC_LOCATION+tm_conf if tm_conf[0] != ?/
|
||||
|
||||
plugin=TMPlugin.new(tm_conf)
|
||||
|
||||
tm=TransferManager.new(plugin, 15)
|
||||
tm=TransferManager.new(plugin,
|
||||
:concurrency => 15)
|
||||
|
||||
tm.start_driver
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user