Skip to content

Commit

Permalink
mxq_group: Load new field job_max_per_node from mxq_group
Browse files Browse the repository at this point in the history
  • Loading branch information
mariux committed Sep 22, 2015
1 parent 586f295 commit 9a9c9f6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mxq_group.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include "mx_util.h"
#include "mx_mysql.h"

#define GROUP_FIELDS_CNT 29
#define GROUP_FIELDS_CNT 30
#define GROUP_FIELDS \
" group_id," \
" group_name," \
Expand All @@ -27,6 +27,7 @@
" job_threads," \
" job_memory," \
" job_time," \
" job_max_per_node," \
" group_jobs," \
" group_jobs_inq," \
" group_jobs_running," \
Expand Down Expand Up @@ -70,6 +71,8 @@ static int bind_result_group_fields(struct mx_mysql_bind *result, struct mxq_gro
res += mx_mysql_bind_var(result, idx++, uint64, &(g->job_memory));
res += mx_mysql_bind_var(result, idx++, uint32, &(g->job_time));

res += mx_mysql_bind_var(result, idx++, uint16, &(g->job_max_per_node));

res += mx_mysql_bind_var(result, idx++, uint64, &(g->group_jobs));
res += mx_mysql_bind_var(result, idx++, uint64, &(g->group_jobs_inq));
res += mx_mysql_bind_var(result, idx++, uint64, &(g->group_jobs_running));
Expand Down
2 changes: 2 additions & 0 deletions mxq_group.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ struct mxq_group {
uint64_t job_memory;
uint32_t job_time;

uint16_t job_max_per_node;

uint64_t group_jobs;
uint64_t group_jobs_inq;
uint64_t group_jobs_running;
Expand Down

0 comments on commit 9a9c9f6

Please sign in to comment.