Merge branch 'tor-gitlab/mr/182' into master

This commit is contained in:
David Goulet
2020-11-17 10:36:05 -05:00
14 changed files with 516 additions and 122 deletions
+5 -1
View File
@@ -1937,7 +1937,11 @@ write_stats_file_callback(time_t now, const or_options_t *options)
next_time_to_write_stats_files = next_write;
}
if (options->HiddenServiceStatistics) {
time_t next_write = rep_hist_hs_stats_write(now);
time_t next_write = rep_hist_hs_stats_write(now, false);
if (next_write && next_write < next_time_to_write_stats_files)
next_time_to_write_stats_files = next_write;
next_write = rep_hist_hs_stats_write(now, true);
if (next_write && next_write < next_time_to_write_stats_files)
next_time_to_write_stats_files = next_write;
}