forked from adrian-bl/bbjobs
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbbjobs.h
More file actions
27 lines (17 loc) · 675 Bytes
/
Copy pathbbjobs.h
File metadata and controls
27 lines (17 loc) · 675 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#include <lsf/lsf.h>
#include <lsf/lsbatch.h>
#include "printer.h"
#define MAXAFFNITYLEN 16
/* Returns TRUE if jobInfoEnt was ever running
** This is not the same as IS_START as it will also
** Return TRUE for DONE or killed jobs
*/
#define HAS_STATS(x) ( (x)->startTime != 0 && (x)->jRusageUpdateTime != 0)
#define NUM_PROC 24 //TODO: FIND A WAY TO GET THIS ONLINE TIME
void xdie(char *msg);
void print_single_job(struct jobInfoEnt *job);
void print_exec_hosts(struct jobInfoEnt *job);
void print_affinity(char *rr);
int get_jobinfo(LS_LONG_INT jobid, int jobidx, int jobopts, char *jobuser);
void pr_duration(char *desc, time_t sec);
int parse_jobidx(char *str);