diff options
author | Nick Mathewson <nickm@torproject.org> | 2020-07-10 07:50:17 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2020-07-10 07:50:17 -0400 |
commit | 8390df917b7e63696c70037765737037cd9162a0 (patch) | |
tree | 6560380a9da89dcbb356aaf1d0a5d8758ba95790 /src/app/main | |
parent | 18391f689ea11b064a9313be8824834df8be2a9e (diff) | |
download | tor-8390df917b7e63696c70037765737037cd9162a0.tar.gz tor-8390df917b7e63696c70037765737037cd9162a0.zip |
Split bandwidth history functions into a separate C file.
These are logically independent from the rest of rephist, and make
more sense in isolation. The next patch will rename them too.
Diffstat (limited to 'src/app/main')
-rw-r--r-- | src/app/main/main.c | 2 | ||||
-rw-r--r-- | src/app/main/shutdown.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/app/main/main.c b/src/app/main/main.c index 89ba787422..7b6a665b75 100644 --- a/src/app/main/main.c +++ b/src/app/main/main.c @@ -53,6 +53,7 @@ #include "feature/rend/rendcache.h" #include "feature/rend/rendservice.h" #include "feature/stats/predict_ports.h" +#include "feature/stats/bwhist.h" #include "feature/stats/rephist.h" #include "lib/compress/compress.h" #include "lib/buf/buffers.h" @@ -549,6 +550,7 @@ tor_init(int argc, char *argv[]) /* Initialize the history structures. */ rep_hist_init(); + bwhist_init(); /* Initialize the service cache. */ rend_cache_init(); addressmap_init(); /* Init the client dns cache. Do it always, since it's diff --git a/src/app/main/shutdown.c b/src/app/main/shutdown.c index aac15246b9..4a556333db 100644 --- a/src/app/main/shutdown.c +++ b/src/app/main/shutdown.c @@ -47,6 +47,7 @@ #include "feature/relay/relay_config.h" #include "feature/rend/rendcache.h" #include "feature/rend/rendclient.h" +#include "feature/stats/bwhist.h" #include "feature/stats/geoip_stats.h" #include "feature/stats/rephist.h" #include "lib/evloop/compat_libevent.h" @@ -121,6 +122,7 @@ tor_free_all(int postfork) rend_cache_free_all(); rend_service_authorization_free_all(); rep_hist_free_all(); + bwhist_free_all(); circuit_free_all(); circpad_machines_free(); entry_guards_free_all(); |