From e387e1a95fbb375c28c0c983ec18bb460dd97985 Mon Sep 17 00:00:00 2001
From: Danny Auble <da@llnl.gov>
Date: Fri, 7 Apr 2006 17:48:38 +0000
Subject: [PATCH] fix for cpu count

---
 src/sacct/process.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/sacct/process.c b/src/sacct/process.c
index 170374827a9..d9affb9db42 100644
--- a/src/sacct/process.c
+++ b/src/sacct/process.c
@@ -165,7 +165,7 @@ int _parse_line(char *f[], void **data)
 		(*step)->status = atoi(f[F_STATUS]);
 		(*step)->exitcode = atoi(f[F_EXITCODE]);
 		(*step)->ntasks = atoi(f[F_NTASKS]);
-		(*step)->ncpus = atoi(f[F_NCPUS]);
+		(*step)->ncpus = atoi(f[F_STEPNCPUS]);
 		(*step)->elapsed = atoi(f[F_ELAPSED]);
 		(*step)->tot_cpu_sec = atoi(f[F_CPU_SEC]);
 		(*step)->tot_cpu_usec = atoi(f[F_CPU_USEC]);
-- 
GitLab