From 1513cc54a3b3b8ea9fbde5614763c73c32c69ed6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zden=C4=9Bk=20=C5=A0ustr?= Date: Tue, 4 Sep 2012 13:35:34 +0000 Subject: [PATCH] Include related jobs list also in text output --- org.glite.lb.server/src/lb_html.c | 50 ++++++++++++++++++++++----------------- 1 file changed, 28 insertions(+), 22 deletions(-) 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