diff options
author | default <nobody@localhost> | 2024-01-08 09:17:38 +0100 |
---|---|---|
committer | default <nobody@localhost> | 2024-01-08 09:17:38 +0100 |
commit | d05399986db1af7729554c7710f674551174364c (patch) | |
tree | ed5614176910476c5cbb6940a4b9361cd49445c6 | |
parent | 62b2c2838cadd58759cde540c5f22ba9593b45fe (diff) |
New state variable top_job_fifo_size.
-rw-r--r-- | httpd.c | 3 | ||||
-rw-r--r-- | snac.h | 1 |
2 files changed, 4 insertions, 0 deletions
@@ -457,6 +457,9 @@ void job_post(const xs_val *job, int urgent) p_state->job_fifo_size++; + if (p_state->job_fifo_size > p_state->top_job_fifo_size) + p_state->top_job_fifo_size = p_state->job_fifo_size; + /* unlock the mutex */ pthread_mutex_unlock(&job_mutex); @@ -50,6 +50,7 @@ typedef struct { int use_fcgi; /* FastCGI use on/off */ time_t srv_start_time; /* start time */ int job_fifo_size; /* job fifo size */ + int top_job_fifo_size; /* maximum job fifo size seen */ int n_threads; /* number of configured threads */ enum { THST_WAIT, THST_IN, THST_QUEUE, THST_STOP } th_state[MAX_THREADS]; } srv_state; |