X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=blobdiff_plain;f=src%2Fngircd%2Fconn.c;h=16e2685596da2fdfd1a9dc1c2c0b9083aa43b841;hp=da7cc63b56fda202bc8166a2b24ae33a32da7c48;hb=af719e60c5e277ac006d3e3e19ef308f94c61b71;hpb=b6c049cb3c8fc8268cc9e7ac87b544e510e8b211 diff --git a/src/ngircd/conn.c b/src/ngircd/conn.c index da7cc63b..16e26855 100644 --- a/src/ngircd/conn.c +++ b/src/ngircd/conn.c @@ -9,7 +9,7 @@ * Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste * der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS. * - * $Id: conn.c,v 1.77 2002/10/09 13:34:19 alex Exp $ + * $Id: conn.c,v 1.79 2002/10/09 17:02:49 alex Exp $ * * connect.h: Verwaltung aller Netz-Verbindungen ("connections") */ @@ -75,7 +75,7 @@ typedef struct _Connection time_t lastping; /* Letzter PING */ time_t lastprivmsg; /* Letzte PRIVMSG */ time_t delaytime; /* Nicht beachten bis ("penalty") */ - INT32 bytes_in, bytes_out; /* Counter fuer Statistik */ + LONG bytes_in, bytes_out; /* Counter fuer Statistik */ } CONNECTION; @@ -455,7 +455,7 @@ Conn_Close( CONN_ID Idx, CHAR *LogMsg, CHAR *FwdMsg, BOOLEAN InformClient ) /* Statistik an Client melden, wenn User */ if(( c != NULL ) && ( Client_Type( c ) == CLIENT_USER )) { - Conn_WriteStr( Idx, "NOTICE %s :%sConnection statistics: %.1f kb received, %.1f kb sent.", Client_ThisServer( ), NOTICE_TXTPREFIX, (double)My_Connections[Idx].bytes_in / 1024, (double)My_Connections[Idx].bytes_out / 1024 ); + Conn_WriteStr( Idx, "NOTICE %s :%sConnection statistics: %.1f kb received, %.1f kb sent.", Client_ThisServer( ), NOTICE_TXTPREFIX, (DOUBLE)My_Connections[Idx].bytes_in / 1024, (DOUBLE)My_Connections[Idx].bytes_out / 1024 ); } /* ERROR an Client schicken (von RFC so vorgesehen!) */