From: Jiří Filipovič Date: Thu, 24 Feb 2011 12:45:03 +0000 (+0000) Subject: job list in HTML interface shows only compute jobs or sandboxes without associated... X-Git-Tag: glite-lb-client-java_R_1_1_1_1~26 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=cdbd212bfb4cbe6d1783406f3261c239a947d86c;p=jra1mw.git job list in HTML interface shows only compute jobs or sandboxes without associated compute job --- diff --git a/org.glite.lb.server/src/lb_html.c b/org.glite.lb.server/src/lb_html.c index 0f47bdf..42de4b7 100644 --- a/org.glite.lb.server/src/lb_html.c +++ b/org.glite.lb.server/src/lb_html.c @@ -60,7 +60,13 @@ int edg_wll_UserInfoToHTML(edg_wll_Context ctx UNUSED_VAR, edg_wlc_JobId *jobsOu while (jobsOut && jobsOut[i]) { char *chid = edg_wlc_JobIdUnparse(jobsOut[i]); - if (! statsOut[i].parent_job){ + if ((statsOut[i].jobtype != EDG_WLL_STAT_FILE_TRANSFER_COLLECTION + && statsOut[i].jobtype != EDG_WLL_STAT_FILE_TRANSFER + && ! statsOut[i].parent_job ) + || ((statsOut[i].jobtype == EDG_WLL_STAT_FILE_TRANSFER_COLLECTION + || statsOut[i].jobtype == EDG_WLL_STAT_FILE_TRANSFER) + && ! statsOut[i].ft_compute_job) + ){ asprintf(&pomA,"%s\t\t
  • %s
  • \r\n", pomB, chid,chid); free(pomB); @@ -90,12 +96,6 @@ int edg_wll_UserInfoToHTML(edg_wll_Context ctx UNUSED_VAR, edg_wlc_JobId *jobsOu free(chid); } -// stat.jobtype == EDG_WLL_STAT_COLLECTION -// if (stat.parent_job) chpa = edg_wlc_JobIdUnparse(stat.parent_job); - - /*free(chid); - free(pomB); - pomB = pomA;*/ i++; } @@ -402,11 +402,11 @@ int edg_wll_FileTransferStatusToHTML(edg_wll_Context ctx UNUSED_VAR, edg_wll_Job chcj = edg_wlc_JobIdUnparse(stat.ft_compute_job); TRL("Compute job", "%s", chcj, NULL); free(chcj); - chpar = edg_wlc_JobIdUnparse(stat.parent_job); - TRL("Parent job", "%s", chpar, NULL); - free(chpar); if (stat.jobtype == EDG_WLL_STAT_FILE_TRANSFER){ + chpar = edg_wlc_JobIdUnparse(stat.parent_job); + TRL("Parent job", "%s", chpar, NULL); + free(chpar); switch(stat.ft_sandbox_type){ case EDG_WLL_STAT_INPUT: chsbt = strdup("INPUT"); break;