[or-cvs] r9238: Add a comment about a possible refactoring in main.c (in tor/trunk: . src/or)

nickm at seul.org nickm at seul.org
Tue Jan 2 20:07:55 UTC 2007


Author: nickm
Date: 2007-01-02 15:07:54 -0500 (Tue, 02 Jan 2007)
New Revision: 9238

Modified:
   tor/trunk/
   tor/trunk/src/or/main.c
Log:
 r11786 at Kushana:  nickm | 2007-01-02 14:32:54 -0500
 Add a comment about a possible refactoring in main.c



Property changes on: tor/trunk
___________________________________________________________________
 svk:merge ticket from /tor/trunk [r11786] on c95137ef-5f19-0410-b913-86e773d04f59

Modified: tor/trunk/src/or/main.c
===================================================================
--- tor/trunk/src/or/main.c	2007-01-02 17:40:42 UTC (rev 9237)
+++ tor/trunk/src/or/main.c	2007-01-02 20:07:54 UTC (rev 9238)
@@ -956,6 +956,9 @@
 static void
 second_elapsed_callback(int fd, short event, void *args)
 {
+  /* XXXX This could be sensibly refactored into multiple callbacks, and we
+   * could use libevent's timers for this rather than checking the current
+   * time against a bunch of timeouts every second. */
   static struct timeval one_second;
   static long current_second = 0;
   struct timeval now;



More information about the tor-commits mailing list