From d7550f7958f5395c7d9018695dc6c9ea773cddb0 Mon Sep 17 00:00:00 2001 From: Christophe Jaillet Date: Sat, 20 Aug 2016 15:36:12 +0000 Subject: [PATCH] Fix the number of column for 'Async connections'. There are only 3 columns (writing, keep-alive, closing), not 4. Try to improve the code layout for it to be more readable. Each is on its own line so keep the corresponding "colspan" fields grouped together. r1738628 introduced a new column, 'Slot'. Add an empty cell for it in the last line of the table, in order to fix the layout of the Totals. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1757009 13f79535-47bb-0310-9956-ffa450edef68 --- modules/generators/mod_status.c | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/modules/generators/mod_status.c b/modules/generators/mod_status.c index 350fae621e..005bf046f2 100644 --- a/modules/generators/mod_status.c +++ b/modules/generators/mod_status.c @@ -541,10 +541,10 @@ static int status_handler(request_rec *r) "PID" "Connections\n" "Threads" - "Async connections\n" + "Async connections\n" "totalaccepting" - "busyidlewriting" - "keep-aliveclosing\n", r); + "busyidle" + "writingkeep-aliveclosing\n", r); for (i = 0; i < server_limit; ++i) { ps_record = ap_get_scoreboard_process(i); if (ps_record->pid) { @@ -556,25 +556,29 @@ static int status_handler(request_rec *r) idle_workers += thread_idle_buffer[i]; if (!short_report) ap_rprintf(r, "%u%" APR_PID_T_FMT "" - "%u%s%u" + "%u%s" + "%u%u" "%u%u%u" - "%u" "\n", - i, ps_record->pid, ps_record->connections, + i, ps_record->pid, + ps_record->connections, ps_record->not_accepting ? "no" : "yes", - thread_busy_buffer[i], thread_idle_buffer[i], + thread_busy_buffer[i], + thread_idle_buffer[i], ps_record->write_completion, ps_record->keep_alive, ps_record->lingering_close); } } if (!short_report) { - ap_rprintf(r, "Sum%d %d" - "%d%d%d%d" + ap_rprintf(r, " Sum" + "%d " + "%d%d" + "%d%d%d" "\n\n", - connections, busy_workers, idle_workers, + connections, + busy_workers, idle_workers, write_completion, keep_alive, lingering_close); - } else { ap_rprintf(r, "ConnsTotal: %d\n" -- 2.50.1