Thread View: news.software.nntp
1 messages
1 total messages
Started by Jeff Garzik
Mon, 02 Jun 1997 00:00
Re: More stats for INN
Author: Jeff Garzik
Date: Mon, 02 Jun 1997 00:00
Date: Mon, 02 Jun 1997 00:00
67 lines
2329 bytes
2329 bytes
This is a multi-part message in MIME format.
--------------6CDE131D5F8A8497CC18806
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
The attached patch prevents a buffer overflow in the previous patch, and
also adds reporting of the seconds each incoming cxn has been open.
--
Jeff Garzik
News Administrator, Spinne, Inc.
http://www.spinne.com/usenet/
--------------6CDE131D5F8A8497CC18806
Content-Type: text/plain; charset=us-ascii; name="cc.c.patch1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="cc.c.patch1"
*** ../inn-plain/innd/cc.c Tue Dec 17 09:40:40 1996
--- innd/cc.c Mon Jun 2 22:20:48 1997
***************
*** 876,881 ****
--- 884,890 ----
register char *p;
register int count;
int i;
+ char Gs1[128];
p = av[0];
if (*p != '\0') {
***************
*** 892,897 ****
--- 901,909 ----
BUFFappend(&CCreply, NL, 1);
p = CHANname(cp);
BUFFappend(&CCreply, p, strlen(p));
+ sprintf(Gs1, ":seconds %ld:accepted %ld:refused %ld:rejected %ld",
+ (long)Now.time - cp->Started, cp->Received, cp->Refused, cp->Rejected);
+ BUFFappend(&CCreply, Gs1, strlen(Gs1));
}
BUFFappend(&CCreply, NIL, 1);
return CCreply.Data;
***************
*** 1576,1583 ****
int written;
#endif /* defined(DO_HAVE_UNIX_DOMAIN) */
int i;
! char buff[BUFSIZ + 2];
! char copy[BUFSIZ + 2];
char *argv[SC_MAXFIELDS + 2];
int argc;
int len;
--- 1588,1595 ----
int written;
#endif /* defined(DO_HAVE_UNIX_DOMAIN) */
int i;
! char buff[BUFSIZ * 16];
! char copy[BUFSIZ * 16];
char *argv[SC_MAXFIELDS + 2];
int argc;
int len;
--------------6CDE131D5F8A8497CC18806--
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads