inn_status.html truncated
Katsuhiro Kondou
kondou at nec.co.jp
Wed Oct 6 15:20:37 UTC 1999
In article <4.2.1.4.19991006074545.00b10760 at pop.atgi.net>,
Paul Theodoropoulos <paul at atgi.net> wrote;
} since upgrading from inn-1999-10-01_03-00 to inn-1999-10-05_03-00
} yesterday, my inn_status.html has been heavily truncated - rather than
} displaying the 40 some-odd peers i have, it's only displaying two, while
} stating in the 'header' that i have 78 peers...
Oops, this is my fault, and just fixed. Try attached.
--
Katsuhiro Kondou
--- innd/status.c.orig Mon Oct 4 19:59:53 1999
+++ innd/status.c Thu Oct 7 00:14:28 1999
@@ -138,7 +138,7 @@
fprintf (F, "%s\n", Version);
fprintf (F, "pid %d started %s\n", (int) getpid(), start_time);
- head = NULL;
+ tmp = head = NULL;
for (i = 0; (cp = CHANiter(&i, CTnntp)) != NULL; ) {
j = 0;
strcpy(TempString, cp->Address.s_addr == 0 ? "localhost" : RChostname(cp));
@@ -170,7 +170,8 @@
if (head == NULL)
head = status;
else
- head->next = status;
+ tmp->next = status;
+ tmp = status;
}
if (Now.time - cp->Started > status->seconds)
status->seconds = Now.time - cp->Started;
More information about the inn-workers
mailing list