| 49 |
|
#include "s_conf.h" |
| 50 |
|
#include "s_log.h" |
| 51 |
|
#include "s_serv.h" |
| 52 |
– |
#include "s_stats.h" |
| 52 |
|
#include "send.h" |
| 53 |
|
#include "memory.h" |
| 54 |
|
#include "s_user.h" |
| 213 |
|
|
| 214 |
|
if (IsServer(client_p)) |
| 215 |
|
{ |
| 216 |
< |
ServerStats->is_sv++; |
| 217 |
< |
ServerStats->is_sbs += client_p->localClient->send.bytes; |
| 218 |
< |
ServerStats->is_sbr += client_p->localClient->recv.bytes; |
| 219 |
< |
ServerStats->is_sti += CurrentTime - client_p->firsttime; |
| 216 |
> |
++ServerStats.is_sv; |
| 217 |
> |
ServerStats.is_sbs += client_p->localClient->send.bytes; |
| 218 |
> |
ServerStats.is_sbr += client_p->localClient->recv.bytes; |
| 219 |
> |
ServerStats.is_sti += CurrentTime - client_p->firsttime; |
| 220 |
|
|
| 221 |
|
/* XXX Does this even make any sense at all anymore? |
| 222 |
|
* scheduling a 'quick' reconnect could cause a pile of |
| 247 |
|
} |
| 248 |
|
else if (IsClient(client_p)) |
| 249 |
|
{ |
| 250 |
< |
ServerStats->is_cl++; |
| 251 |
< |
ServerStats->is_cbs += client_p->localClient->send.bytes; |
| 252 |
< |
ServerStats->is_cbr += client_p->localClient->recv.bytes; |
| 253 |
< |
ServerStats->is_cti += CurrentTime - client_p->firsttime; |
| 250 |
> |
++ServerStats.is_cl; |
| 251 |
> |
ServerStats.is_cbs += client_p->localClient->send.bytes; |
| 252 |
> |
ServerStats.is_cbr += client_p->localClient->recv.bytes; |
| 253 |
> |
ServerStats.is_cti += CurrentTime - client_p->firsttime; |
| 254 |
|
} |
| 255 |
|
else |
| 256 |
< |
ServerStats->is_ni++; |
| 256 |
> |
++ServerStats.is_ni; |
| 257 |
|
|
| 258 |
|
#ifdef HAVE_LIBCRYPTO |
| 259 |
|
if (client_p->localClient->fd.ssl) |