home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dtix!darwin.sura.net!mips!pacbell.com!decwrl!world!geoff
- From: geoff@world.std.com (Geoff Collyer)
- Newsgroups: news.software.nntp
- Subject: minor speed up for C News sites
- Message-ID: <Brsuwp.39y@world.std.com>
- Date: 22 Jul 92 16:53:12 GMT
- Organization: The World @ Software Tool & Die
- Lines: 45
-
- If you are running a C News later than March 1991, this small patch to
- server/batch.c of NNTP 1.5.11 will speed up newsrun processing by tagging
- input batches as cleartext:
-
-
- *** server/batch.c.old Tue Jul 21 21:43:32 1992
- --- server/batch.c Tue Jul 21 21:43:33 1992
- ***************
- *** 427,433 ****
- }
-
- /* rename btch.name to a number so newsrun will see it */
- ! sprintf(number, "%ld", (long)time(&now));
- #else
- sprintf(number, "%d.%d", getpid(), uniq++);
- #endif /* NONEWSRUN */
- --- 427,433 ----
- }
-
- /* rename btch.name to a number so newsrun will see it */
- ! sprintf(number, "%ld.t", (long)time(&now));
- #else
- sprintf(number, "%d.%d", getpid(), uniq++);
- #endif /* NONEWSRUN */
- ***************
- *** 436,442 ****
- break;
- sleep(2);
- #ifndef NONEWSRUN
- ! sprintf(number, "%ld", (long)time(&now));
- #else
- sprintf(number, "%d.%d", getpid(), uniq++);
- #endif /* NONEWSRUN */
- --- 436,443 ----
- break;
- sleep(2);
- #ifndef NONEWSRUN
- ! /* .t indicates a known-text file to newsrun */
- ! sprintf(number, "%ld.t", (long)time(&now));
- #else
- sprintf(number, "%d.%d", getpid(), uniq++);
- #endif /* NONEWSRUN */
-
- --
- Geoff Collyer world.std.com!geoff, uunet.uu.net!geoff
-