summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--httpd.c3
-rw-r--r--snac.h1
2 files changed, 4 insertions, 0 deletions
diff --git a/httpd.c b/httpd.c
index af387da..f324cdc 100644
--- a/httpd.c
+++ b/httpd.c
@@ -457,6 +457,9 @@ void job_post(const xs_val *job, int urgent)
457 457
458 p_state->job_fifo_size++; 458 p_state->job_fifo_size++;
459 459
460 if (p_state->job_fifo_size > p_state->top_job_fifo_size)
461 p_state->top_job_fifo_size = p_state->job_fifo_size;
462
460 /* unlock the mutex */ 463 /* unlock the mutex */
461 pthread_mutex_unlock(&job_mutex); 464 pthread_mutex_unlock(&job_mutex);
462 465
diff --git a/snac.h b/snac.h
index 9d2a0c9..4ac0db7 100644
--- a/snac.h
+++ b/snac.h
@@ -50,6 +50,7 @@ typedef struct {
50 int use_fcgi; /* FastCGI use on/off */ 50 int use_fcgi; /* FastCGI use on/off */
51 time_t srv_start_time; /* start time */ 51 time_t srv_start_time; /* start time */
52 int job_fifo_size; /* job fifo size */ 52 int job_fifo_size; /* job fifo size */
53 int top_job_fifo_size; /* maximum job fifo size seen */
53 int n_threads; /* number of configured threads */ 54 int n_threads; /* number of configured threads */
54 enum { THST_WAIT, THST_IN, THST_QUEUE, THST_STOP } th_state[MAX_THREADS]; 55 enum { THST_WAIT, THST_IN, THST_QUEUE, THST_STOP } th_state[MAX_THREADS];
55} srv_state; 56} srv_state;