#if DAG_ENABLE
if (stat->jobtype == EDG_WLL_STAT_DAG || stat->jobtype == EDG_WLL_STAT_COLLECTION) {
- if (1) {
+
+// printf("edg_wll_JobStatus:i EDG_WLL_STAT_DAG || EDG_WLL_STAT_COLLECTION\n");
+// printf("flags: %d",flags);
+
+ if (flags & EDG_WLL_STAT_CHILDHIST_FAST) { /* Fast Histogram */
+// printf("edg_wll_JobStatus: EDG_WLL_STAT_CHILDHIST_FAST\n");
+
+ edg_wll_GetSubjobHistogram(ctx, job, stat);
+
+ }
+
+ if (flags & EDG_WLL_STAT_CHILDHIST_THOROUGH) { /* Full (thorough) Histogram */
+// printf("edg_wll_JobStatus: EDG_WLL_STAT_CHILDHIST_THOROUGH\n");
+
char *out[2];
edg_wll_Stmt sh;
int num_sub, num_f, i;
<val name="CLASSADS">Include also long job descriptions (JDL).</val>
<val name="CHILDREN">Return list of subjobs of a DAG.</val>
<val name="CHILDSTAT">Return state of the subjobs, i.e. apply other flags recursively </val>
+ <val name="CHILDHIST_FAST">Return a histogram of subjob states (fast computation method, certain subjobs will be in an "unknown" state)</val>
+ <val name="CHILDHIST_THOROUGH">Return a full histogram of subjob states.</vol>
</flags>
<enum name="statName">