X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=ircd%2Fircd.c;h=64395ccb371d63c3c9d71cc136822a1a490cfd99;hb=7ec4144c6b646292025b62ebeb1f974e02c03698;hp=94f49fa8234b556dd35159abe5565549b7d23c3b;hpb=e9173d8c13ba396d3ee2a0d13b2217948aaeb23a;p=ircu2.10.12-pk.git diff --git a/ircd/ircd.c b/ircd/ircd.c index 94f49fa..64395cc 100644 --- a/ircd/ircd.c +++ b/ircd/ircd.c @@ -301,12 +301,16 @@ static time_t check_pings(void) */ max_ping = IsRegistered(cptr) ? get_client_ping(cptr) : CONNECTTIMEOUT; + Debug((DEBUG_DEBUG, "check_pings(%s)=status:%s limit: %d current: %d", + cptr->name, (cptr->flags & FLAGS_PINGSENT) ? "[Ping Sent]" : "[]", + max_ping, (int)(CurrentTime - cptr->lasttime))); + /* Ok, the thing that will happen most frequently, is that someone will * have sent something recently. Cover this first for speed. */ if (CurrentTime-cptr->lasttime < max_ping) { expire=cptr->lasttime + max_ping; - if (next_check=CurrentTime); + Debug((DEBUG_DEBUG, "[%i] check_pings() again in %is",CurrentTime,next_check-CurrentTime)); + return next_check; } @@ -485,6 +493,7 @@ ping_timeout: static void print_usage(void) { printf("Usage: ircd [-f config] [-h servername] [-x loglevel] [-ntv]\n"); + printf("\n -n -t\t Don't detach\n -v\t display version\n\n"); printf("Server not started\n"); }