Skip to content

Commit

Permalink
mxqdump: Add group_name to job view
Browse files Browse the repository at this point in the history
  • Loading branch information
mariux committed Jul 21, 2015
1 parent beaeb55 commit a5b7181
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mxqdump.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,12 +169,13 @@ static int print_job(struct mxq_group *g, struct mxq_job *j)
run_sec = (j->date_end - j->date_start);
}

return printf("job=%s(%u):%lu:%lu host_pid=%u server=%s::%s waittime=%lus runtime=%lus utime=%lus stime=%lus runtime_requested=%us time_load=%lu%% "
return printf("job=%s(%u):%lu:%lu host_pid=%u server=%s::%s group_name=%s waittime=%lus runtime=%lus utime=%lus stime=%lus runtime_requested=%us time_load=%lu%% "
"memory_requested=%lukiB max_rss=%lukiB memory_load=%lu%% threads=%d slots=%u status=%s(%d) stats_status=%u restart=%s workdir=%s command=%s"
"\n",
g->user_name, g->user_uid, g->group_id, j->job_id,
j->host_pid,
j->host_hostname, j->server_id,
g->group_name,
wait_sec, run_sec,
j->stats_rusage.ru_utime.tv_sec,j->stats_rusage.ru_stime.tv_sec,g->job_time*60,
(100UL*(run_sec)/60UL/g->job_time),
Expand Down

0 comments on commit a5b7181

Please sign in to comment.