[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] Actually log post-bootstrap directory dl totals.
commit 9bcd7e5939ddd8f285ef951bc551a6f623b64748
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date: Thu Mar 19 08:08:58 2020 -0400
Actually log post-bootstrap directory dl totals.
Fixes bug 33651; bug not in any released Tor.
---
src/feature/dirclient/dirclient.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/feature/dirclient/dirclient.c b/src/feature/dirclient/dirclient.c
index e7bec89ca..2072dddad 100644
--- a/src/feature/dirclient/dirclient.c
+++ b/src/feature/dirclient/dirclient.c
@@ -1984,7 +1984,7 @@ dirclient_dump_total_dls(void)
for (int bootstrapped = 0; bootstrapped < 2; ++bootstrapped) {
bool first_time = true;
for (int i=0; i < DIR_PURPOSE_MAX_; ++i) {
- uint64_t n = total_dl[i][0];
+ uint64_t n = total_dl[i][bootstrapped];
if (n == 0)
continue;
if (options->SafeLogging_ != SAFELOG_SCRUB_NONE &&
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits