Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gyuricska Milán
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
cbf15087
authored
Oct 17, 2013
by
Dudás Ádám
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vm: convert memory size unit from MiB to KiB for vmdriver
fixes #22
parent
8aa156e5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
circle/vm/models.py
+2
-2
No files found.
circle/vm/models.py
View file @
cbf15087
...
...
@@ -489,8 +489,8 @@ class Instance(BaseResourceConfigModel, TimeStampedModel):
return
{
'name'
:
self
.
vm_name
,
'vcpu'
:
self
.
num_cores
,
'memory'
:
self
.
ram_size
,
'memory_max'
:
self
.
max_ram_size
,
'memory'
:
self
.
ram_size
*
1024
,
# convert from MiB to KiB
'memory_max'
:
self
.
max_ram_size
*
1024
,
# convert from MiB to KiB
'cpu_share'
:
self
.
priority
,
'arch'
:
self
.
arch
,
'boot_menu'
:
self
.
boot_menu
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment