summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-01-02 20:07:54 +0000
committerNick Mathewson <nickm@torproject.org>2007-01-02 20:07:54 +0000
commit75eca91459b3840cfea1977efe6338f642b81a4a (patch)
treef6ebc42c904e03abfb68baee6e759b8b30215ba3
parent4f565b73ef81daf7b9b96fb81de288b8aa167bad (diff)
downloadtor-75eca91459b3840cfea1977efe6338f642b81a4a.tar.gz
tor-75eca91459b3840cfea1977efe6338f642b81a4a.zip
r11786@Kushana: nickm | 2007-01-02 14:32:54 -0500
Add a comment about a possible refactoring in main.c svn:r9238
-rw-r--r--src/or/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/main.c b/src/or/main.c
index 7d4117adcc..1f082624c6 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -956,6 +956,9 @@ static int n_libevent_errors = 0;
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;