diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-12-12 12:11:09 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2020-02-18 11:25:18 -0500 |
commit | 93af83e16a620a8e8d9972f65b724e4e3a520434 (patch) | |
tree | f6e6f4ab85213764747491286012f1d83634c309 /src/core/or/status.c | |
parent | 17724a7cdeb9b98539831f1164a82784f1fb050f (diff) | |
download | tor-93af83e16a620a8e8d9972f65b724e4e3a520434.tar.gz tor-93af83e16a620a8e8d9972f65b724e4e3a520434.zip |
Remember dirctory bw usage, and log it in the heartbeat
Closes ticket 32720.
Diffstat (limited to 'src/core/or/status.c')
-rw-r--r-- | src/core/or/status.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/or/status.c b/src/core/or/status.c index f9f603f3b7..ed8448883c 100644 --- a/src/core/or/status.c +++ b/src/core/or/status.c @@ -17,6 +17,7 @@ #include "core/or/or.h" #include "core/or/circuituse.h" #include "app/config/config.h" +#include "feature/dirclient/dirclient.h" #include "core/or/status.h" #include "feature/nodelist/nodelist.h" #include "core/or/relay.h" @@ -146,6 +147,8 @@ log_heartbeat(time_t now) uptime, count_circuits(), bw_sent, bw_rcvd, hibernating?" We are currently hibernating.":""); + dirclient_dump_total_dls(); + if (server_mode(options) && accounting_is_enabled(options) && !hibernating) { log_accounting(now, options); } |