Skip to content

Commit

Permalink
doveadm service status: Show total number of processes created
Browse files Browse the repository at this point in the history
  • Loading branch information
sirainen committed Jul 4, 2018
1 parent 5c1267b commit cf76551
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/doveadm/doveadm-master.c
Expand Up @@ -172,6 +172,7 @@ static void cmd_service_status(struct doveadm_cmd_context *cctx)
doveadm_print_header_simple("listen_pending");
doveadm_print_header_simple("listening");
doveadm_print_header_simple("doveadm_stop");
doveadm_print_header_simple("process_total");
fields_count = doveadm_print_get_headers_count();

alarm(5);
Expand Down
5 changes: 3 additions & 2 deletions src/master/master-client.c
Expand Up @@ -20,7 +20,7 @@ master_client_service_status_output(string_t *str,
const struct service *service)
{
str_append_tabescaped(str, service->set->name);
str_printfa(str, "\t%u\t%u\t%u\t%u\t%u\t%ld\t%u\t%ld\t%c\t%c\t%c\n",
str_printfa(str, "\t%u\t%u\t%u\t%u\t%u\t%ld\t%u\t%ld\t%c\t%c\t%c\t%"PRIu64"\n",
service->process_count, service->process_avail,
service->process_limit, service->client_limit,
service->to_throttle == NULL ? 0 : service->throttle_secs,
Expand All @@ -29,7 +29,8 @@ master_client_service_status_output(string_t *str,
(long)service->last_drop_warning,
service->listen_pending ? 'y' : 'n',
service->listening ? 'y' : 'n',
service->doveadm_stop ? 'y' : 'n');
service->doveadm_stop ? 'y' : 'n',
service->process_count_total);
}

static int
Expand Down

0 comments on commit cf76551

Please sign in to comment.