aboutsummaryrefslogtreecommitdiff
path: root/src/feature/stats/rephist.c
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2021-12-13 10:48:54 -0500
committerDavid Goulet <dgoulet@torproject.org>2021-12-13 10:48:54 -0500
commitad6a0ebb119dba09fd1a0d1d6eb2a1362803bce3 (patch)
tree0512c7917f2a5949c0a970df337fc7590dbb7dc5 /src/feature/stats/rephist.c
parentb4c55f3a700b9c071c7f8466499ed9cf5ef76fc7 (diff)
parentcda7acb35d40c505dc4d2c3b55d611faab189477 (diff)
downloadtor-ad6a0ebb119dba09fd1a0d1d6eb2a1362803bce3.tar.gz
tor-ad6a0ebb119dba09fd1a0d1d6eb2a1362803bce3.zip
Merge branch 'ticket40527_046_01' into ticket40527_047_01
Diffstat (limited to 'src/feature/stats/rephist.c')
-rw-r--r--src/feature/stats/rephist.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/feature/stats/rephist.c b/src/feature/stats/rephist.c
index b4431f5a76..68c9349bc3 100644
--- a/src/feature/stats/rephist.c
+++ b/src/feature/stats/rephist.c
@@ -352,18 +352,6 @@ overload_general_dns_assessment(void)
return;
}
- /* Lets see if we can signal a general overload. */
- double fraction = (double) overload_dns_stats.stats_n_error_timeout /
- (double) overload_dns_stats.stats_n_request;
- if (fraction >= overload_dns_timeout_fraction) {
- log_notice(LD_HIST, "General overload -> DNS timeouts (%" PRIu64 ") "
- "fraction %.4f%% is above threshold of %.4f%%",
- overload_dns_stats.stats_n_error_timeout,
- fraction * 100.0,
- overload_dns_timeout_fraction * 100.0);
- rep_hist_note_overload(OVERLOAD_GENERAL);
- }
-
reset:
/* Reset counters for the next period. */
overload_dns_stats.stats_n_error_timeout = 0;