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

(kill_client): Update STAT_RECV_QUEUE.

parent e6c327b9
/*
* $Id: internal-connections.c,v 0.57 2003/08/01 09:37:02 ceder Exp $
* $Id: internal-connections.c,v 0.58 2003/08/01 13:14:25 ceder Exp $
* Copyright (C) 1991-1994, 1996-2002 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -54,6 +54,7 @@
#include "kom-memory.h"
#include "server-time.h"
#include "timeval-util.h"
#include "stats.h"
/* We don't need the defensive checks in this file. They have been
tested enough the last few years. They also consume a lot of CPU. */
......@@ -264,6 +265,9 @@ kill_client(Connection *cp)
if ( last_conn == cp )
last_conn = NULL;
update_stat(STAT_RECV_QUEUE,
-(s_strlen(cp->unparsed) - cp->first_to_parse));
s_clear(&cp->unparsed);
s_clear(&cp->what_am_i_doing);
s_clear(&cp->username);
......
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