home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / news / software / nntp / 894 < prev    next >
Encoding:
Internet Message Format  |  1992-07-22  |  1.5 KB

  1. Path: sparky!uunet!dtix!darwin.sura.net!mips!pacbell.com!decwrl!world!geoff
  2. From: geoff@world.std.com (Geoff Collyer)
  3. Newsgroups: news.software.nntp
  4. Subject: minor speed up for C News sites
  5. Message-ID: <Brsuwp.39y@world.std.com>
  6. Date: 22 Jul 92 16:53:12 GMT
  7. Organization: The World @ Software Tool & Die
  8. Lines: 45
  9.  
  10. If you are running a C News later than March 1991, this small patch to
  11. server/batch.c of NNTP 1.5.11 will speed up newsrun processing by tagging
  12. input batches as cleartext:
  13.  
  14.  
  15. *** server/batch.c.old    Tue Jul 21 21:43:32 1992
  16. --- server/batch.c    Tue Jul 21 21:43:33 1992
  17. ***************
  18. *** 427,433 ****
  19.       }
  20.   
  21.       /* rename btch.name to a number so newsrun will see it */
  22. !     sprintf(number, "%ld", (long)time(&now));
  23.   #else
  24.       sprintf(number, "%d.%d", getpid(), uniq++);
  25.   #endif /* NONEWSRUN */
  26. --- 427,433 ----
  27.       }
  28.   
  29.       /* rename btch.name to a number so newsrun will see it */
  30. !     sprintf(number, "%ld.t", (long)time(&now));
  31.   #else
  32.       sprintf(number, "%d.%d", getpid(), uniq++);
  33.   #endif /* NONEWSRUN */
  34. ***************
  35. *** 436,442 ****
  36.               break;
  37.           sleep(2);
  38.   #ifndef NONEWSRUN
  39. !         sprintf(number, "%ld", (long)time(&now));
  40.   #else
  41.           sprintf(number, "%d.%d", getpid(), uniq++);
  42.   #endif /* NONEWSRUN */
  43. --- 436,443 ----
  44.               break;
  45.           sleep(2);
  46.   #ifndef NONEWSRUN
  47. !         /* .t indicates a known-text file to newsrun */
  48. !         sprintf(number, "%ld.t", (long)time(&now));
  49.   #else
  50.           sprintf(number, "%d.%d", getpid(), uniq++);
  51.   #endif /* NONEWSRUN */
  52.  
  53. -- 
  54. Geoff Collyer        world.std.com!geoff, uunet.uu.net!geoff
  55.