working on scheduler and fix issue #17
This commit is contained in:
parent
4034fd7556
commit
a46ea822c1
10 changed files with 159 additions and 40 deletions
|
|
@ -436,7 +436,7 @@ void free_strlist(xce_strlist_t* l)
|
|||
FREEUP(l->data);
|
||||
}
|
||||
|
||||
int fmt_jobid_ex(char* buf, size_t sz, uint64_t jobid, char lc, char rc)
|
||||
int fmt_jobid_ex(char* buf, size_t sz, uint64_t jobid, char* lc, char* rc)
|
||||
{
|
||||
uint32_t tag, id_cluster, id_apiserver, id_timestamp;
|
||||
char data[128];
|
||||
|
|
@ -455,7 +455,7 @@ int fmt_jobid_ex(char* buf, size_t sz, uint64_t jobid, char lc, char rc)
|
|||
id_job = EXTRACT_ARRAY_JOB(jobid);
|
||||
id_idx = EXTRACT_ARRAY_IDX(jobid);
|
||||
|
||||
snprintf(data, sizeof(data) - 1, "%d-%d-%d-%d%c%d%c", id_cluster,
|
||||
snprintf(data, sizeof(data) - 1, "%d-%d-%d-%d%s%d%s", id_cluster,
|
||||
id_apiserver, id_timestamp, id_job, lc, id_idx, rc);
|
||||
} else {
|
||||
uint32_t id_seq;
|
||||
|
|
@ -476,7 +476,7 @@ int fmt_jobid_ex(char* buf, size_t sz, uint64_t jobid, char lc, char rc)
|
|||
|
||||
int fmt_jobid(char* buf, size_t sz, uint64_t jobid)
|
||||
{
|
||||
return fmt_jobid_ex(buf, sz, jobid, '[', ']');
|
||||
return fmt_jobid_ex(buf, sz, jobid, "[", "]");
|
||||
}
|
||||
|
||||
int parse_jobid(uint64_t* jobid, char* buf)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue