Skip to content

Commit

Permalink
worker: Remove two unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
hessu committed Jun 22, 2024
1 parent 730c5c0 commit 6d10fd5
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/worker.c
Original file line number Diff line number Diff line change
Expand Up @@ -2252,8 +2252,6 @@ int worker_client_list(cJSON *workers, cJSON *clients, cJSON *uplinks, cJSON *pe
struct worker_t *w = worker_threads;
struct client_t *c;
int pe;
int client_heard_count = 0;
int client_courtesy_count = 0;

while (w) {
if ((pe = pthread_mutex_lock(&w->clients_mutex))) {
Expand All @@ -2268,9 +2266,6 @@ int worker_client_list(cJSON *workers, cJSON *clients, cJSON *uplinks, cJSON *pe
cJSON_AddNumberToObject(jw, "pbuf_incoming_local_count", w->pbuf_incoming_local_count);

for (c = w->clients; (c); c = c->next) {
client_heard_count += c->client_heard_count;
client_courtesy_count += c->client_courtesy_count;

/* clients on hidden listener sockets are not shown */
/* if there are a huge amount of clients, don't list them
* - cJSON takes huge amounts of CPU to build the list
Expand Down

0 comments on commit 6d10fd5

Please sign in to comment.