mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
feature #595: changed tm to use new libraries
This commit is contained in:
parent
99b22d8e1e
commit
77fd34bf5a
@ -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
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user