mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-21 22:01:31 +02:00
MINOR: activity: rename the "stream" field to "stream_calls"
This one was confusingly called, I thought it was the cumulated number of streams but it's the number of calls to process_stream(). Let's make this clearer.
This commit is contained in:
parent
a00cf9bbaf
commit
7af4fa9a48
@ -46,7 +46,7 @@ struct activity {
|
||||
unsigned int poll_dead_fd; // poller woke up with a dead FD
|
||||
unsigned int poll_skip_fd; // poller skipped another thread's FD
|
||||
unsigned int conn_dead; // conn_fd_handler woke up on an FD indicating a dead connection
|
||||
unsigned int stream; // calls to process_stream()
|
||||
unsigned int stream_calls; // calls to process_stream()
|
||||
unsigned int ctxsw; // total number of context switches
|
||||
unsigned int tasksw; // total number of task switches
|
||||
unsigned int empty_rq; // calls to process_runnable_tasks() with nothing for the thread
|
||||
|
@ -1139,7 +1139,7 @@ static int cli_io_handler_show_activity(struct appctx *appctx)
|
||||
chunk_appendf(&trash, "poll_dead_fd:"); SHOW_TOT(thr, activity[thr].poll_dead_fd);
|
||||
chunk_appendf(&trash, "poll_skip_fd:"); SHOW_TOT(thr, activity[thr].poll_skip_fd);
|
||||
chunk_appendf(&trash, "conn_dead:"); SHOW_TOT(thr, activity[thr].conn_dead);
|
||||
chunk_appendf(&trash, "stream:"); SHOW_TOT(thr, activity[thr].stream);
|
||||
chunk_appendf(&trash, "stream_calls:"); SHOW_TOT(thr, activity[thr].stream_calls);
|
||||
chunk_appendf(&trash, "pool_fail:"); SHOW_TOT(thr, activity[thr].pool_fail);
|
||||
chunk_appendf(&trash, "buf_wait:"); SHOW_TOT(thr, activity[thr].buf_wait);
|
||||
chunk_appendf(&trash, "cpust_ms_tot:"); SHOW_TOT(thr, activity[thr].cpust_total / 2);
|
||||
|
@ -1495,7 +1495,7 @@ struct task *process_stream(struct task *t, void *context, unsigned short state)
|
||||
|
||||
DBG_TRACE_ENTER(STRM_EV_STRM_PROC, s);
|
||||
|
||||
activity[tid].stream++;
|
||||
activity[tid].stream_calls++;
|
||||
|
||||
req = &s->req;
|
||||
res = &s->res;
|
||||
|
Loading…
x
Reference in New Issue
Block a user