From 54afb3a634fc3d5ce74f0e3a9c319c72f45263fc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Milo=C5=A1=20Mula=C4=8D?= Date: Mon, 12 Feb 2007 13:11:33 +0000 Subject: [PATCH] print (conditionally) PBS state fields --- org.glite.lb.client/examples/job_status.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/org.glite.lb.client/examples/job_status.c b/org.glite.lb.client/examples/job_status.c index 289183b..5dc3e85 100644 --- a/org.glite.lb.client/examples/job_status.c +++ b/org.glite.lb.client/examples/job_status.c @@ -198,7 +198,6 @@ static void printstat(edg_wll_JobStat stat, int level) s = edg_wll_StatToString(stat.state); /* print whole flat structure */ printf("%sstate : %s\n", ind, s); - if (stat.pbs_state) printf("%sPBS state : %s\n", ind, stat.pbs_state); printf("%sjobId : %s\n", ind, j = edg_wlc_JobIdUnparse(stat.jobId)); printf("%sowner : %s\n", ind, stat.owner); switch (stat.jobtype) { @@ -282,6 +281,19 @@ static void printstat(edg_wll_JobStat stat, int level) for (i=0; stat.possible_ce_nodes[i]; i++) printf("%s\t%s \n", ind, stat.possible_ce_nodes[i]); } + /* PBS state section */ + if (stat.jobtype == EDG_WLL_STAT_PBS) { + printf("%spbs_state : %s\n", ind, stat.pbs_state); + printf("%spbs_queue : %s\n", ind, stat.pbs_queue); + printf("%spbs_owner : %s\n", ind, stat.pbs_owner); + printf("%spbs_name : %s\n", ind, stat.pbs_name); + printf("%spbs_reason : %s\n", ind, stat.pbs_reason); + printf("%spbs_scheduler : %s\n", ind, stat.pbs_scheduler); + printf("%spbs_dest_host : %s\n", ind, stat.pbs_dest_host); + printf("%spbs_pid : %d\n", ind, stat.pbs_pid); + printf("%spbs_exit_status : %d\n", ind, stat.pbs_exit_status); + printf("%spbs_error : %s\n", ind, stat.pbs_error); + } printf("\n"); -- 1.8.2.3