diff options
author | George Kadianakis <desnacked@riseup.net> | 2020-10-21 14:32:30 +0300 |
---|---|---|
committer | George Kadianakis <desnacked@riseup.net> | 2020-11-03 11:09:24 +0200 |
commit | bd28551763bd008be5a6f676410d9b6b1d011bf6 (patch) | |
tree | 8869b88ba30d7b785dba4e9ab288d7ad5c50b5ba /src/feature/relay/router.c | |
parent | 5ed7fcec41db16820c3777451d083d0d74f124ce (diff) | |
download | tor-bd28551763bd008be5a6f676410d9b6b1d011bf6.tar.gz tor-bd28551763bd008be5a6f676410d9b6b1d011bf6.zip |
Introduce v3_stats_t structure and some of its methods.
Diffstat (limited to 'src/feature/relay/router.c')
-rw-r--r-- | src/feature/relay/router.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/feature/relay/router.c b/src/feature/relay/router.c index 5ca21964b6..ea631e18fe 100644 --- a/src/feature/relay/router.c +++ b/src/feature/relay/router.c @@ -3288,6 +3288,11 @@ extrainfo_dump_to_string_stats_helper(smartlist_t *chunks, "hidserv-stats-end", now, &contents) > 0) { smartlist_add(chunks, contents); } + if (options->HiddenServiceStatistics && + load_stats_file("stats"PATH_SEPARATOR"hidserv-v3-stats", + "hidserv-v3-stats-end", now, &contents) > 0) { + smartlist_add(chunks, contents); + } if (options->EntryStatistics && load_stats_file("stats"PATH_SEPARATOR"entry-stats", "entry-stats-end", now, &contents) > 0) { |