@@ -142,24 +142,24 @@ static int cqueue_summary_xml_report_cqueue(cqueue_summary_handler_t *handler, c
142
142
if (summary->is_load_available ) {
143
143
xml_append_Attr_D (attributeList, " load" , summary->load );
144
144
}
145
- xml_append_Attr_I (attributeList, " used" , ( int ) summary->used );
146
- xml_append_Attr_I (attributeList, " resv" , ( int ) summary->resv );
147
- xml_append_Attr_I (attributeList, " available" , ( int ) summary->available );
148
- xml_append_Attr_I (attributeList, " total" , ( int ) summary->total );
149
- xml_append_Attr_I (attributeList, " temp_disabled" , ( int ) summary->temp_disabled );
150
- xml_append_Attr_I (attributeList, " manual_intervention" , ( int ) summary->manual_intervention );
145
+ xml_append_Attr_U (attributeList, " used" , summary->used );
146
+ xml_append_Attr_U (attributeList, " resv" , summary->resv );
147
+ xml_append_Attr_U (attributeList, " available" , summary->available );
148
+ xml_append_Attr_U (attributeList, " total" , summary->total );
149
+ xml_append_Attr_U (attributeList, " temp_disabled" , summary->temp_disabled );
150
+ xml_append_Attr_U (attributeList, " manual_intervention" , summary->manual_intervention );
151
151
if (show_states) {
152
- xml_append_Attr_I (attributeList, " suspend_manual" , ( int ) summary->suspend_manual );
153
- xml_append_Attr_I (attributeList, " suspend_threshold" , ( int ) summary->suspend_threshold );
154
- xml_append_Attr_I (attributeList, " suspend_on_subordinate" , ( int ) summary->suspend_on_subordinate );
155
- xml_append_Attr_I (attributeList, " suspend_calendar" , ( int ) summary->suspend_calendar );
156
- xml_append_Attr_I (attributeList, " unknown" , ( int ) summary->unknown );
157
- xml_append_Attr_I (attributeList, " load_alarm" , ( int ) summary->load_alarm );
158
- xml_append_Attr_I (attributeList, " disabled_manual" , ( int ) summary->disabled_manual );
159
- xml_append_Attr_I (attributeList, " disabled_calendar" , ( int ) summary->disabled_calendar );
160
- xml_append_Attr_I (attributeList, " ambiguous" , ( int ) summary->ambiguous );
161
- xml_append_Attr_I (attributeList, " orphaned" , ( int ) summary->orphaned );
162
- xml_append_Attr_I (attributeList, " error" , ( int ) summary->error );
152
+ xml_append_Attr_U (attributeList, " suspend_manual" , summary->suspend_manual );
153
+ xml_append_Attr_U (attributeList, " suspend_threshold" , summary->suspend_threshold );
154
+ xml_append_Attr_U (attributeList, " suspend_on_subordinate" , summary->suspend_on_subordinate );
155
+ xml_append_Attr_U (attributeList, " suspend_calendar" , summary->suspend_calendar );
156
+ xml_append_Attr_U (attributeList, " unknown" , summary->unknown );
157
+ xml_append_Attr_U (attributeList, " load_alarm" , summary->load_alarm );
158
+ xml_append_Attr_U (attributeList, " disabled_manual" , summary->disabled_manual );
159
+ xml_append_Attr_U (attributeList, " disabled_calendar" , summary->disabled_calendar );
160
+ xml_append_Attr_U (attributeList, " ambiguous" , summary->ambiguous );
161
+ xml_append_Attr_U (attributeList, " orphaned" , summary->orphaned );
162
+ xml_append_Attr_U (attributeList, " error" , summary->error );
163
163
}
164
164
if (elem) {
165
165
if (handler->ctx == nullptr ){
@@ -481,13 +481,12 @@ static int qstat_xml_job(job_handler_t* handler, u_long32 jid, job_summary_t *su
481
481
482
482
if (!summary->is_zombie ) {
483
483
if (sge_ext ||summary->is_queue_assigned ) {
484
- xml_append_Attr_I (attribute_list, " tickets" , (int )summary->tickets );
485
- xml_append_Attr_I (attribute_list, " JB_override_tickets" , (int )summary->override_tickets );
486
- xml_append_Attr_I (attribute_list, " JB_jobshare" , (int )summary->share );
487
- xml_append_Attr_I (attribute_list, " otickets" , (int )summary->otickets );
488
- xml_append_Attr_I (attribute_list, " ftickets" , (int )summary->ftickets );
489
- xml_append_Attr_I (attribute_list, " stickets" , (int )summary->stickets );
490
- /* RH TODO: asked Stefan want is the difference between JAT_share and JB_jobshare */
484
+ xml_append_Attr_U (attribute_list, " tickets" , summary->tickets );
485
+ xml_append_Attr_U (attribute_list, " JB_override_tickets" , summary->override_tickets );
486
+ xml_append_Attr_U (attribute_list, " JB_jobshare" , summary->share );
487
+ xml_append_Attr_U (attribute_list, " otickets" , summary->otickets );
488
+ xml_append_Attr_U (attribute_list, " ftickets" , summary->ftickets );
489
+ xml_append_Attr_U (attribute_list, " stickets" , summary->stickets );
491
490
xml_append_Attr_D (attribute_list, " JAT_share" , summary->share );
492
491
}
493
492
}
@@ -503,7 +502,7 @@ static int qstat_xml_job(job_handler_t* handler, u_long32 jid, job_summary_t *su
503
502
xml_append_Attr_S (attribute_list, " master" , summary->master );
504
503
}
505
504
506
- xml_append_Attr_I (attribute_list, " slots" , ( int ) summary->slots );
505
+ xml_append_Attr_U (attribute_list, " slots" , summary->slots );
507
506
508
507
if (summary->task_id && summary->is_array ) {
509
508
xml_append_Attr_S (attribute_list, " tasks" , summary->task_id );
@@ -554,10 +553,10 @@ static int qstat_xml_sub_task(job_handler_t* handler, task_summary_t *summary, l
554
553
}
555
554
556
555
if (summary->has_exit_status ) {
557
- xml_append_Attr_I (attribute_list, " stat" , summary->exit_status );
556
+ xml_append_Attr_U (attribute_list, " stat" , summary->exit_status );
558
557
}
559
558
560
- /* add the sub task to the current job element */
559
+ /* add the sub- task to the current job element */
561
560
attribute_list = lGetListRW (ctx->job_elem , XMLE_Attribute);
562
561
lAppendElem (attribute_list, xml_elem);
563
562
@@ -754,7 +753,7 @@ static int qstat_xml_job_predecessor(job_handler_t* handler, u_long32 jid, lList
754
753
755
754
DENTER (TOP_LAYER);
756
755
757
- xml_append_Attr_I (attribute_list, " predecessor_jobs" , ( int ) jid);
756
+ xml_append_Attr_U (attribute_list, " predecessor_jobs" , jid);
758
757
759
758
DRETURN (0 );
760
759
}
@@ -776,7 +775,7 @@ static int qstat_xml_job_ad_predecessor(job_handler_t* handler, u_long32 jid, lL
776
775
777
776
DENTER (TOP_LAYER);
778
777
779
- xml_append_Attr_I (attribute_list, " ad_predecessor_jobs" , ( int ) jid);
778
+ xml_append_Attr_U (attribute_list, " ad_predecessor_jobs" , jid);
780
779
781
780
DRETURN (0 );
782
781
}
@@ -1054,9 +1053,9 @@ static int qstat_xml_queue_summary(qstat_handler_t* handler, const char* qname,
1054
1053
xml_append_Attr_S (attribute_list, " qtype" , summary->queue_type );
1055
1054
1056
1055
/* number of used/free slots */
1057
- xml_append_Attr_I (attribute_list, " slots_used" , summary->used_slots );
1058
- xml_append_Attr_I (attribute_list, " slots_resv" , summary->resv_slots );
1059
- xml_append_Attr_I (attribute_list, " slots_total" , summary->total_slots );
1056
+ xml_append_Attr_U (attribute_list, " slots_used" , summary->used_slots );
1057
+ xml_append_Attr_U (attribute_list, " slots_resv" , summary->resv_slots );
1058
+ xml_append_Attr_U (attribute_list, " slots_total" , summary->total_slots );
1060
1059
1061
1060
/* load avg */
1062
1061
if (summary->has_load_value && summary->has_load_value_from_object ) {
0 commit comments