fix(vm): missing parameters and wrong value for set_memory_static_max
This commit is contained in:
parent
4ed02ca501
commit
fbe1e6a7d5
@ -414,7 +414,7 @@ set = $coroutine (params) ->
|
|||||||
if 'memoryMax' of params
|
if 'memoryMax' of params
|
||||||
memoryMax = parseSize(params.memoryMax)
|
memoryMax = parseSize(params.memoryMax)
|
||||||
if memoryMax > VM.memory.static[1]
|
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?
|
if resourceSet?
|
||||||
yield @allocateLimitsInResourceSet({
|
yield @allocateLimitsInResourceSet({
|
||||||
memory: memory - VM.memory.dynamic[1]
|
memory: memory - VM.memory.dynamic[1]
|
||||||
@ -422,7 +422,7 @@ set = $coroutine (params) ->
|
|||||||
yield xapi.call 'VM.set_memory_dynamic_max', ref, "#{memoryMax}"
|
yield xapi.call 'VM.set_memory_dynamic_max', ref, "#{memoryMax}"
|
||||||
if 'memoryStaticMax' of params
|
if 'memoryStaticMax' of params
|
||||||
memoryStaticMax = parseSize(params.memoryStaticMax)
|
memoryStaticMax = parseSize(params.memoryStaticMax)
|
||||||
yield xapi.call 'VM.set_memory_static_max', memoryMax
|
yield xapi.call 'VM.set_memory_static_max', ref, "#{memoryStaticMax}"
|
||||||
|
|
||||||
|
|
||||||
# Memory.
|
# Memory.
|
||||||
|
Loading…
Reference in New Issue
Block a user