Skip to content
Snippets Groups Projects
Commit 4ce9e0f5 authored by d74ksy's avatar d74ksy
Browse files

Hopefully fixed a bug that has never occured, but could occur if hierarchical...

Hopefully fixed a bug that has never occured, but could occur if hierarchical resources were small enough. Didn't break anything
parent a60e96ad
Branches
No related tags found
No related merge requests found
......@@ -1036,8 +1036,8 @@ for(i = 0; i < s->count_res; i++ )
int parent = s->res[ID].parent;
struct res *resource = &s->res[ res[i] ];
if(s->res[ID].task == s->res[parent].task)
continue;
/* if(s->res[ID].task == s->res[parent].task)
continue;*/
/* Loop through children if there are any. */
if(numChildren > 0)
{
......@@ -1133,6 +1133,9 @@ for(i = 0; i < s->count_res; i++ )
}
}
}
if(s->res[ID].task == s->res[parent].task)
continue;
if( s->size_deps < s->count_deps + 1 + num_uses[ res[ i ] ])
{
qsched_task_t *temp1, *temp2;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment