7689c570a2b6bbd480d09cdc162ba56d86426b07 kent Fri Dec 27 19:50:04 2013 -0800 Moving a couple of routines to library so they can be shared. diff --git src/parasol/inc/jobResult.h src/parasol/inc/jobResult.h index 72bf3ac..2dda944 100644 --- src/parasol/inc/jobResult.h +++ src/parasol/inc/jobResult.h @@ -1,22 +1,24 @@ /* jobResult.h was originally generated by the autoSql program, which also * generated jobResult.c and jobResult.sql. This header links the database and * the RAM representation of objects. */ #ifndef JOBRESULT_H #define JOBRESULT_H +#define JOBRESULT_NUM_COLS 11 + struct jobResult /* Info about the result of one job from parasol */ { struct jobResult *next; /* Next in singly linked list. */ int status; /* Job status - wait() return format. 0 is good. */ char *host; /* Machine job ran on. */ char *jobId; /* Job queuing system job ID */ char *exe; /* Job executable file (no path) */ int usrTicks; /* 'User' CPU time in ticks. */ int sysTicks; /* 'System' CPU time in ticks. */ unsigned submitTime; /* Job submission time in seconds since 1/1/1970 */ unsigned startTime; /* Job start time in seconds since 1/1/1970 */ unsigned endTime; /* Job end time in seconds since 1/1/1970 */ char *user; /* User who ran job */ char *errFile; /* Location of stderr file on host */