You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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]);
}
The text was updated successfully, but these errors were encountered:
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]);
}
The text was updated successfully, but these errors were encountered: