diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-03-04 11:00:02 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-03-04 11:00:02 -0500 |
commit | bb375442141b4a5b301212394ce3e106cb34daf2 (patch) | |
tree | 96a5baed08b8212b1b719e8ad72507d76e34bb99 /src/or/circuitlist.c | |
parent | c8d41da52d6ae1edd1c4999e328b1e7eadc0ab5b (diff) | |
parent | 46118d7d7542aa960a26a08d9d5fbac33698765c (diff) | |
download | tor-bb375442141b4a5b301212394ce3e106cb34daf2.tar.gz tor-bb375442141b4a5b301212394ce3e106cb34daf2.zip |
Merge remote-tracking branch 'public/bug10169_024' into bug10169_025_v2
Conflicts:
src/common/compat_libevent.h
src/or/relay.c
Diffstat (limited to 'src/or/circuitlist.c')
-rw-r--r-- | src/or/circuitlist.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/or/circuitlist.c b/src/or/circuitlist.c index 01d5aee60a..b2eb730c8c 100644 --- a/src/or/circuitlist.c +++ b/src/or/circuitlist.c @@ -1794,7 +1794,7 @@ circuits_handle_oom(size_t current_allocation) mem_to_recover = current_allocation - mem_target; } - tor_gettimeofday_cached(&now); + tor_gettimeofday_cached_monotonic(&now); now_ms = (uint32_t)tv_to_msec(&now); /* This algorithm itself assumes that you've got enough memory slack @@ -1832,9 +1832,11 @@ circuits_handle_oom(size_t current_allocation) buf_shrink_freelists(1); /* This is necessary to actually release buffer chunks. */ - log_notice(LD_GENERAL, "Removed "U64_FORMAT" bytes by killing %d circuits.", + log_notice(LD_GENERAL, "Removed "U64_FORMAT" bytes by killing %d circuits; " + "%d circuits remain alive.", U64_PRINTF_ARG(mem_recovered), - n_circuits_killed); + n_circuits_killed, + smartlist_len(circlist) - n_circuits_killed); smartlist_free(circlist); } |