Commit a2f0286f authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(queue_add): Update statistics.

(queue_remove): Ditto.
(parse_unparsed): Ditto.
parent 722aa4d1
/*
* $Id: connections.c,v 0.101 2003/07/14 10:56:29 ceder Exp $
* $Id: connections.c,v 0.102 2003/07/23 08:23:05 ceder Exp $
* Copyright (C) 1991-2002 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -83,6 +83,7 @@
#include "eintr.h"
#include "text-garb.h"
#include "timeval-util.h"
#include "stats.h"
oop_source_sys * kom_server_oop_src = NULL;
struct isc_mcb * kom_server_mcb = NULL;
......@@ -145,6 +146,8 @@ queue_add(Connection *c)
queue_last->queue_next = c;
queue_last = c;
update_stat(STAT_RUN_QUEUE, 1);
update_stat(STAT_RUN_QUEUE_ENTER, 1);
}
static void
......@@ -165,6 +168,8 @@ queue_remove(Connection *c)
c->queue_prev = NULL;
c->queue_next = NULL;
update_stat(STAT_RUN_QUEUE, -1);
update_stat(STAT_RUN_QUEUE_LEAVE, 1);
}
void
......@@ -433,6 +438,7 @@ parse_unparsed(Connection *client)
reply(client, status, &result);
client->penalty += param.penalty_per_call;
free_parsed(client);
update_stat(STAT_PROCESSED_CALLS, 1);
end_of_atomic();
return TRUE;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment