From: Zdeněk Šustr Date: Tue, 4 Sep 2012 13:35:34 +0000 (+0000) Subject: Include related jobs list also in text output X-Git-Tag: glite-lb-client_R_5_2_5_1~9 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=1513cc54a3b3b8ea9fbde5614763c73c32c69ed6;p=jra1mw.git Include related jobs list also in text output --- diff --git a/org.glite.lb.server/src/lb_html.c b/org.glite.lb.server/src/lb_html.c index 18bcd8d..d951fbf 100644 --- a/org.glite.lb.server/src/lb_html.c +++ b/org.glite.lb.server/src/lb_html.c @@ -460,8 +460,9 @@ int edg_wll_GeneralJobStatusToHTML(edg_wll_Context ctx UNUSED_VAR, edg_wll_JobSt time_t time; char *pomA = NULL; - int i; + int i, total = 0; size_t linlen, outlen; + edg_wll_RelationshipRecord *connections; chtemp = edg_wlc_JobIdUnparse(stat.jobId); @@ -781,22 +782,29 @@ int edg_wll_GeneralJobStatusToHTML(edg_wll_Context ctx UNUSED_VAR, edg_wll_JobSt } } - if (!text) { - edg_wll_RelationshipRecord *connections; - int total = 0; - edg_wll_getConnectedJobs(ctx, stat.jobId, EDG_WLL_JOBCONNECTION_UNDEFINED, &connections); + edg_wll_getConnectedJobs(ctx, stat.jobId, EDG_WLL_JOBCONNECTION_UNDEFINED, &connections); - if (connections) { - outlen = asprintf(&relations, "

Related Jobs

\n