fix(vm): missing parameters and wrong value for set_memory_static_max

This commit is contained in:
Olivier Lambert 2016-05-27 10:19:22 +02:00
parent 4ed02ca501
commit fbe1e6a7d5

View File

@ -414,7 +414,7 @@ set = $coroutine (params) ->
if 'memoryMax' of params
memoryMax = parseSize(params.memoryMax)
if memoryMax > VM.memory.static[1]
yield xapi.call 'VM.set_memory_static_max', memoryMax
yield xapi.call 'VM.set_memory_static_max', ref, "#{memoryMax}"
if resourceSet?
yield @allocateLimitsInResourceSet({
memory: memory - VM.memory.dynamic[1]
@ -422,7 +422,7 @@ set = $coroutine (params) ->
yield xapi.call 'VM.set_memory_dynamic_max', ref, "#{memoryMax}"
if 'memoryStaticMax' of params
memoryStaticMax = parseSize(params.memoryStaticMax)
yield xapi.call 'VM.set_memory_static_max', memoryMax
yield xapi.call 'VM.set_memory_static_max', ref, "#{memoryStaticMax}"
# Memory.