mirror of
https://github.com/OpenNebula/one.git
synced 2025-01-26 10:03:37 +03:00
moved initialization of capacity parameters
git-svn-id: http://svn.opennebula.org/one/trunk@99 3034c82b-c49b-4eb3-8279-a7acafdc01c0
This commit is contained in:
parent
3f50c32187
commit
9ff96cc530
@ -467,15 +467,15 @@ void VirtualMachine::get_requirements (int& cpu, int& memory, int& disk)
|
||||
istringstream iss;
|
||||
float fcpu;
|
||||
|
||||
cpu=0;
|
||||
memory=0;
|
||||
disk=0;
|
||||
|
||||
get_template_attribute("MEMORY",memory);
|
||||
get_template_attribute("CPU",scpu);
|
||||
|
||||
if ((memory == 0) || (scpu==""))
|
||||
{
|
||||
cpu = 0;
|
||||
memory = 0;
|
||||
disk = 0;
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user