/[svn]/ircd-hybrid-7.2/src/s_bsd.c
ViewVC logotype

Diff of /ircd-hybrid-7.2/src/s_bsd.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 895 by db, Fri Sep 14 03:33:44 2007 UTC revision 896 by michael, Sat Nov 3 08:54:09 2007 UTC
# Line 49  Line 49 
49  #include "s_conf.h"  #include "s_conf.h"
50  #include "s_log.h"  #include "s_log.h"
51  #include "s_serv.h"  #include "s_serv.h"
 #include "s_stats.h"  
52  #include "send.h"  #include "send.h"
53  #include "memory.h"  #include "memory.h"
54  #include "s_user.h"  #include "s_user.h"
# Line 214  close_connection(struct Client *client_p Line 213  close_connection(struct Client *client_p
213    
214    if (IsServer(client_p))    if (IsServer(client_p))
215    {    {
216      ServerStats->is_sv++;      ++ServerStats.is_sv;
217      ServerStats->is_sbs += client_p->localClient->send.bytes;      ServerStats.is_sbs += client_p->localClient->send.bytes;
218      ServerStats->is_sbr += client_p->localClient->recv.bytes;      ServerStats.is_sbr += client_p->localClient->recv.bytes;
219      ServerStats->is_sti += CurrentTime - client_p->firsttime;      ServerStats.is_sti += CurrentTime - client_p->firsttime;
220    
221      /* XXX Does this even make any sense at all anymore?      /* XXX Does this even make any sense at all anymore?
222       * scheduling a 'quick' reconnect could cause a pile of       * scheduling a 'quick' reconnect could cause a pile of
# Line 248  close_connection(struct Client *client_p Line 247  close_connection(struct Client *client_p
247    }    }
248    else if (IsClient(client_p))    else if (IsClient(client_p))
249    {    {
250      ServerStats->is_cl++;      ++ServerStats.is_cl;
251      ServerStats->is_cbs += client_p->localClient->send.bytes;      ServerStats.is_cbs += client_p->localClient->send.bytes;
252      ServerStats->is_cbr += client_p->localClient->recv.bytes;      ServerStats.is_cbr += client_p->localClient->recv.bytes;
253      ServerStats->is_cti += CurrentTime - client_p->firsttime;      ServerStats.is_cti += CurrentTime - client_p->firsttime;
254    }    }
255    else    else
256      ServerStats->is_ni++;      ++ServerStats.is_ni;
257    
258  #ifdef HAVE_LIBCRYPTO  #ifdef HAVE_LIBCRYPTO
259    if (client_p->localClient->fd.ssl)    if (client_p->localClient->fd.ssl)

Legend:
Removed from v.895  
changed lines
  Added in v.896

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.26