mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-24 14:51:11 +01:00
r11786@Kushana: nickm | 2007-01-02 14:32:54 -0500
Add a comment about a possible refactoring in main.c svn:r9238
This commit is contained in:
parent
4f565b73ef
commit
75eca91459
1 changed files with 3 additions and 0 deletions
|
@ -956,6 +956,9 @@ static int n_libevent_errors = 0;
|
||||||
static void
|
static void
|
||||||
second_elapsed_callback(int fd, short event, void *args)
|
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 struct timeval one_second;
|
||||||
static long current_second = 0;
|
static long current_second = 0;
|
||||||
struct timeval now;
|
struct timeval now;
|
||||||
|
|
Loading…
Add table
Reference in a new issue