1
0
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:
Rubén S. Montero 2008-09-29 21:13:35 +00:00
parent 3f50c32187
commit 9ff96cc530

View File

@ -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;
}