X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=ircd%2Fpacket.c;h=763440864ab2e84ef722f1656d45a25427c7d87e;hb=refs%2Fheads%2Fupstream;hp=100f592f0b57225c7332329bc4ebb83a60987227;hpb=b33d0452ce316992fec7c41b23ffaef6ecad8516;p=ircu2.10.12-pk.git diff --git a/ircd/packet.c b/ircd/packet.c index 100f592..7634408 100644 --- a/ircd/packet.c +++ b/ircd/packet.c @@ -27,12 +27,13 @@ #include "client.h" #include "ircd.h" #include "ircd_chattr.h" +#include "ircd_log.h" #include "parse.h" #include "s_bsd.h" #include "s_misc.h" #include "send.h" -#include +/* #include -- Now using assert in ircd_log.h */ /** Add a certain number of bytes to a client's received statistics. * @param[in,out] cptr Client to update. @@ -42,15 +43,6 @@ static void update_bytes_received(struct Client* cptr, unsigned int length) { cli_receiveB(&me) += length; /* Update bytes received */ cli_receiveB(cptr) += length; - - if (cli_receiveB(cptr) > 1023) { - cli_receiveK(cptr) += (cli_receiveB(cptr) >> 10); - cli_receiveB(cptr) &= 0x03ff; /* 2^10 = 1024, 3ff = 1023 */ - } - if (cli_receiveB(&me) > 1023) { - cli_receiveK(&me) += (cli_receiveB(&me) >> 10); - cli_receiveB(&me) &= 0x03ff; - } } /** Add one message to a client's received statistics.