mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
Merge remote-tracking branch 'sebastian/bug4293'
This commit is contained in:
commit
ea0518f209
@ -1578,7 +1578,8 @@ options_act(const or_options_t *old_options)
|
||||
options->ConnDirectionStatistics) {
|
||||
rep_hist_conn_stats_init(now);
|
||||
}
|
||||
if (!old_options || !old_options->BridgeAuthoritativeDir) {
|
||||
if ((!old_options || !old_options->BridgeAuthoritativeDir) &&
|
||||
options->BridgeAuthoritativeDir) {
|
||||
rep_hist_desc_stats_init(now);
|
||||
print_notice = 1;
|
||||
}
|
||||
|
@ -2712,6 +2712,8 @@ rep_hist_desc_stats_write(time_t now)
|
||||
void
|
||||
rep_hist_note_desc_served(const char * desc)
|
||||
{
|
||||
if (!served_descs)
|
||||
return; // We're not collecting stats
|
||||
digestmap_set(served_descs, desc, (void *)1);
|
||||
total_descriptor_downloads++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user