diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-11-16 03:32:01 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-11-16 03:32:01 +0000 |
commit | 647c076c8f3b961e69d003cde4bebda18b39f65c (patch) | |
tree | f6a825f48c3ec44f072e6075d6840f339ba1e73f /src/or | |
parent | 3e4f30fbb99b851c6d3e1a750626c07b22858c43 (diff) | |
download | tor-647c076c8f3b961e69d003cde4bebda18b39f65c.tar.gz tor-647c076c8f3b961e69d003cde4bebda18b39f65c.zip |
add a TODO item and some comment changes.
svn:r2904
Diffstat (limited to 'src/or')
-rw-r--r-- | src/or/circuitbuild.c | 3 | ||||
-rw-r--r-- | src/or/hibernate.c | 10 |
2 files changed, 7 insertions, 6 deletions
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c index 2e7c66b74f..a98bca273f 100644 --- a/src/or/circuitbuild.c +++ b/src/or/circuitbuild.c @@ -422,8 +422,7 @@ int circuit_send_next_onion_skin(circuit_t *circ) { if(!has_completed_circuit) { has_completed_circuit=1; log_fn(LOG_NOTICE,"Tor has successfully opened a circuit. Looks like it's working."); - /* XXX009 put a count of known routers here */ - /* XXXX "Put?" Do you mean log, or something else? -NM */ + /* XXX009 Log a count of known routers here */ } circuit_rep_hist_note_result(circ); circuit_has_opened(circ); /* do other actions as necessary */ diff --git a/src/or/hibernate.c b/src/or/hibernate.c index f972479246..7bff2934d8 100644 --- a/src/or/hibernate.c +++ b/src/or/hibernate.c @@ -206,12 +206,14 @@ update_expected_bandwidth(void) { uint64_t used; uint32_t max_configured = (get_options()->BandwidthRateBytes * 60); - /* XXX max_configured will be false if it exceeds - * get_options()->AccountingMaxKB*1000, right? -RD - * XXX Huh? Why? How? -NM - */ if (n_seconds_active_in_interval < 1800) { + /* If we haven't gotten enough data last interval, guess that + * we'll be used at our maximum capacity. This is unlikely to be + * so, but it will give us an okay first estimate, and we'll stay + * up until we send MaxKB kilobytes. Next interval, we'll choose + * our starting time based on how much we sent this interval. + */ expected_bandwidth_usage = max_configured; } else { used = n_bytes_written_in_interval < n_bytes_read_in_interval ? |