diff --git a/include/client.h b/include/client.h index 620c6e6e..98703592 100644 --- a/include/client.h +++ b/include/client.h @@ -253,7 +253,7 @@ struct LocalUser * -- adrian */ int allow_read; /* how many we're allowed to read in this second */ - int actually_read; /* how many we've actually read in this second */ + int dummy0; int sent_parsed; /* how many messages we've parsed in this second */ time_t last_knock; /* time of last knock */ unsigned long random_ping; diff --git a/src/packet.c b/src/packet.c index 3f58844b..93be2c2f 100644 --- a/src/packet.c +++ b/src/packet.c @@ -143,7 +143,6 @@ parse_client_queued(struct Client *client_p) return; client_p->localClient->sent_parsed += ConfigFileEntry.client_flood_message_time; - client_p->localClient->actually_read++; } } } @@ -196,8 +195,6 @@ flood_recalc(void *unused) if(client_p->localClient->sent_parsed < 0) client_p->localClient->sent_parsed = 0; - client_p->localClient->actually_read = 0; - parse_client_queued(client_p); if(rb_unlikely(IsAnyDead(client_p))) @@ -217,8 +214,6 @@ flood_recalc(void *unused) if(client_p->localClient->sent_parsed < 0) client_p->localClient->sent_parsed = 0; - client_p->localClient->actually_read = 0; - parse_client_queued(client_p); } }