From f822262a5a627d51736911d5be1a076ed9256067 Mon Sep 17 00:00:00 2001
From: Danny Auble <da@llnl.gov>
Date: Thu, 25 Mar 2010 16:14:50 +0000
Subject: [PATCH] fix for lua support for the new slurmd_job_t struct

---
 src/plugins/proctrack/lua/proctrack_lua.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/plugins/proctrack/lua/proctrack_lua.c b/src/plugins/proctrack/lua/proctrack_lua.c
index f9a9d7c7fd5..a093e89ca59 100644
--- a/src/plugins/proctrack/lua/proctrack_lua.c
+++ b/src/plugins/proctrack/lua/proctrack_lua.c
@@ -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");
 
-- 
GitLab