[cvslog] (2002-09-27 22:44:12 UTC) Module eggdrop1.6: Change committed

cvslog cvs at tsss.org
Fri Sep 27 17:45:01 CST 2002


CVSROOT    : /usr/local/cvsroot
Module     : eggdrop1.6
Commit time: 2002-09-27 22:44:12 UTC
Commited by: Will Buckner <wcc at techmonkeys.org>

Modified files:
     doc/UPDATES1.6 src/misc.c src/patch.h

Log message:

Optimized logging functions. Patch by BarkerJr.

---------------------- diff included ----------------------
Index: eggdrop1.6/doc/UPDATES1.6
diff -u eggdrop1.6/doc/UPDATES1.6:1.414 eggdrop1.6/doc/UPDATES1.6:1.415
--- eggdrop1.6/doc/UPDATES1.6:1.414	Fri Sep 27 17:16:24 2002
+++ eggdrop1.6/doc/UPDATES1.6	Fri Sep 27 17:44:02 2002
@@ -1,10 +1,11 @@
-$Id: UPDATES1.6,v 1.414 2002/09/27 22:16:24 wcc Exp $
+$Id: UPDATES1.6,v 1.415 2002/09/27 22:44:02 wcc Exp $
 
 Changes in Eggdrop: (since v1.6.0)
 ----------------------------------
 
 1.6.13
 Found by  Fixed by  What...
+          BarkerJr  optimized logging functions
 various   Wcc       removed eggdrop.advanced.conf and eggdrop.simple.conf
           Eule      adding a missing killsock and lostdcc in eof_dcc_send() and
                     eof_dcc_get()
Index: eggdrop1.6/src/misc.c
diff -u eggdrop1.6/src/misc.c:1.49 eggdrop1.6/src/misc.c:1.50
--- eggdrop1.6/src/misc.c:1.49	Sat Sep 21 16:32:05 2002
+++ eggdrop1.6/src/misc.c	Fri Sep 27 17:44:02 2002
@@ -7,7 +7,7 @@
  *   help system
  *   motd display and %var substitution
  *
- * $Id: misc.c,v 1.49 2002/09/21 21:32:05 wcc Exp $
+ * $Id: misc.c,v 1.50 2002/09/27 22:44:02 wcc Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -483,15 +483,15 @@
 {
   int i, type, tsl;
   char *format, *chname, s[LOGLINELEN], s1[256], *out;
-  time_t tt=now;
   char ct[81], *s2, stamp[32];
   va_list va;
+  struct tm *t = localtime(&now);
 
   type = EGG_VARARGS_START(int, arg1, va);
   chname = va_arg(va, char *);
   format = va_arg(va, char *);
 
-  strftime(&stamp[0], 32, LOG_TS, localtime(&tt));
+  strftime(&stamp[0], 32, LOG_TS, t);
   sprintf(&stamp[0], "%s ", stamp);
   tsl = strlen(stamp);
 
@@ -504,9 +504,9 @@
   out[LOGLINEMAX - tsl] = 0;
   if (keep_all_logs) {
     if (!logfile_suffix[0])
-      egg_strftime(ct, 12, ".%d%b%Y", localtime(&tt));
+      egg_strftime(ct, 12, ".%d%b%Y", t);
     else {
-      egg_strftime(ct, 80, logfile_suffix, localtime(&tt));
+      egg_strftime(ct, 80, logfile_suffix, t);
       ct[80] = 0;
       s2 = ct;
       /* replace spaces by underscores */
Index: eggdrop1.6/src/patch.h
diff -u eggdrop1.6/src/patch.h:1.830 eggdrop1.6/src/patch.h:1.831
--- eggdrop1.6/src/patch.h:1.830	Fri Sep 27 16:14:44 2002
+++ eggdrop1.6/src/patch.h	Fri Sep 27 17:44:02 2002
@@ -10,7 +10,7 @@
  * statement, leave the rest of the file alone, this allows better
  * overlapping patches.
  *
- * $Id: patch.h,v 1.830 2002/09/27 21:14:44 wcc Exp $
+ * $Id: patch.h,v 1.831 2002/09/27 22:44:02 wcc Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -41,12 +41,12 @@
  *
  *
  */
-patch("1033161060");		/* current unixtime */
+patch("1033166351");		/* current unixtime */
 /*
  *
  *
  */
-patch("user-optimization");
+patch("putlog-opt");
 /*
  *
  *
----------------------- End of diff -----------------------



More information about the Changes mailing list