Commit ac1b414b authored by Jonathan Jenkins's avatar Jonathan Jenkins
Browse files

add reserve rc functionality

parent fb8bda12
......@@ -334,7 +334,11 @@ static void handle_resource_reserve_rc(
* sequential reserve appending to the end of the list
* - we expect reserves to happen strictly at the beginning of the
* simulation */
/* NOTE: this logic will change if the resource_reserve logic changes */
int tok = ns->r.num_tokens--;
ns->r.max[tok] += m->i.req;
ns->r.avail[tok] -= m->i.req;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment