[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] r17351: {tor} prepare_for_poll() -- plus its mysterious cousin, prepare_fo (tor/trunk/src/or)



Author: arma
Date: 2008-11-21 09:07:57 -0500 (Fri, 21 Nov 2008)
New Revision: 17351

Modified:
   tor/trunk/src/or/main.c
Log:
prepare_for_poll() -- plus its mysterious cousin, prepare_for_pool() --
are long gone.


Modified: tor/trunk/src/or/main.c
===================================================================
--- tor/trunk/src/or/main.c	2008-11-21 05:48:13 UTC (rev 17350)
+++ tor/trunk/src/or/main.c	2008-11-21 14:07:57 UTC (rev 17351)
@@ -45,10 +45,10 @@
 /** Max number of relayed (bandwidth class 1) bytes I can write this second. */
 int global_relayed_write_bucket;
 
-/** What was the read bucket before the last call to prepare_for_pool?
+/** What was the read bucket before the last second_elapsed_callback() call?
  * (used to determine how many bytes we've read). */
 static int stats_prev_global_read_bucket;
-/** What was the write bucket before the last call to prepare_for_pool?
+/** What was the write bucket before the last second_elapsed_callback() call?
  * (used to determine how many bytes we've written). */
 static int stats_prev_global_write_bucket;
 /* XXX we might want to keep stats about global_relayed_*_bucket too. Or not.*/
@@ -817,7 +817,7 @@
 }
 
 /** Perform regular maintenance tasks.  This function gets run once per
- * second by prepare_for_poll.
+ * second by second_elapsed_callback().
  */
 static void
 run_scheduled_events(time_t now)