1st workable scheduler with resource from controller

This commit is contained in:
Rongsong Shen 2025-12-31 15:48:33 +08:00
parent 780e9fb313
commit bef32ace38
8 changed files with 238 additions and 24 deletions

View file

@ -42,11 +42,12 @@ static xce_res_account_t* make_res_account(xce_alloc_t* alloc)
return NULL;
}
account->instid = alloc->instid;
account->resname = strdup(alloc->resname);
account->residx = -1;
account->used = 0.0;
account->reserved = alloc->value;
account->instid = alloc->instid;
account->resname = strdup(alloc->resname);
account->residx = -1;
account->used = 0.0;
account->reserved = alloc->value;
account->allocated = alloc->value;
return account;
}