Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loop in cpu_cost model::GetEquivClassToEquivClassesArcs need to simplified , make method and return true or false and use it in for loop condition #33

Open
Suresh-Babu-K opened this issue Feb 5, 2019 · 0 comments

Comments

@Suresh-Babu-K
Copy link

Loop in cpu_cost model::GetEquivClassToEquivClassesArcs need to simplified , make method and return true or false and use it in for loop conditional check and increment.
for (cur_resource = task_resource_request;
cur_resource.cpu_cores_ < available_resources.cpu_cores_ &&
cur_resource.ram_cap_ < available_resources.ram_cap_ &&
cur_resource.ephemeral_storage_ < available_resources.ephemeral_storage_ &&
index < ecs_for_machine->size() && task_count < rd.max_pods();
cur_resource.cpu_cores_ += task_resource_request->cpu_cores_,
cur_resource.ram_cap_ += task_resource_request->ram_cap_,
cur_resource.ephemeral_storage_ += task_resource_request->ephemeral_storage_,
index++, task_count++) {
cout<<"
** pushing at index"<<index<<endl;
pref_ecs->push_back(ec_machines.second[index]);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant