Skip to content
Snippets Groups Projects
Commit f822262a authored by Danny Auble's avatar Danny Auble
Browse files

fix for lua support for the new slurmd_job_t struct

parent a86f70b1
No related branches found
No related tags found
No related merge requests found
......@@ -265,8 +265,10 @@ static int lua_job_table_create (slurmd_job_t *job)
lua_pushnumber (L, job->job_mem);
lua_setfield (L, -2, "mem");
lua_pushstring (L, job->alloc_cores ? job->alloc_cores : "");
lua_setfield (L, -2, "CPUs");
lua_pushstring (L, job->job_alloc_cores ? job->job_alloc_cores : "");
lua_setfield (L, -2, "JobCPUs");
lua_pushstring (L, job->step_alloc_cores ? job->step_alloc_cores : "");
lua_setfield (L, -2, "StepCPUs");
lua_pushstring (L, job->cwd ? job->cwd : "");
lua_setfield (L, -2, "cwd");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment