From: Jiří Filipovič Date: Tue, 22 Jun 2010 09:14:13 +0000 (+0000) Subject: - backward compatible edg_wll_StatsRequestToXML X-Git-Tag: glite-lb-types_R_1_1_1_1_emi_0~14 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=4ed0ac9cd6cbf72be6c4153b32d7f18cc4b4eea7;p=jra1mw.git - backward compatible edg_wll_StatsRequestToXML - fixed passing of minor --- diff --git a/org.glite.lb.client/interface/statistics.h b/org.glite.lb.client/interface/statistics.h index e07a7ca..8757fe9 100644 --- a/org.glite.lb.client/interface/statistics.h +++ b/org.glite.lb.client/interface/statistics.h @@ -73,7 +73,7 @@ int edg_wll_StateDurationFromTo( const edg_wll_QueryRec *group, edg_wll_JobStatCode base, edg_wll_JobStatCode final, - int *minor, + int minor, time_t *from, time_t *to, float *duration, diff --git a/org.glite.lb.client/src/statistics.c b/org.glite.lb.client/src/statistics.c index 1f808ff..fed5af4 100644 --- a/org.glite.lb.client/src/statistics.c +++ b/org.glite.lb.client/src/statistics.c @@ -66,7 +66,7 @@ int edg_wll_StateRate( edg_wll_ResetError(ctx); - edg_wll_StatsRequestToXML(ctx, "Rate", group, major, EDG_WLL_JOB_UNDEF, minor, from, to, &send_mess); + edg_wll_StatsRequestToXML(ctx, "Rate", group, major, minor, from, to, &send_mess); if (set_server_name_and_port(ctx, NULL)) goto err; @@ -112,7 +112,7 @@ int edg_wll_StateDuration( edg_wll_ResetError(ctx); - edg_wll_StatsRequestToXML(ctx, "Duration", group, major, EDG_WLL_JOB_UNDEF, minor, from, to, &send_mess); + edg_wll_StatsRequestToXML(ctx, "Duration", group, major, minor, from, to, &send_mess); if (set_server_name_and_port(ctx, NULL)) goto err; @@ -146,7 +146,7 @@ int edg_wll_StateDurationFromTo( const edg_wll_QueryRec *group, edg_wll_JobStatCode base, edg_wll_JobStatCode final, - int *minor, + int minor, time_t *from, time_t *to, float *duration, @@ -160,7 +160,7 @@ int edg_wll_StateDurationFromTo( edg_wll_ResetError(ctx); - edg_wll_StatsRequestToXML(ctx, "DurationFromTo", group, base, final, minor, from, to, &send_mess); + edg_wll_StatsDurationFTRequestToXML(ctx, "DurationFromTo", group, base, final, minor, from, to, &send_mess); if (set_server_name_and_port(ctx, NULL)) goto err;