]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Actually log post-bootstrap directory dl totals.
authorNick Mathewson <nickm@torproject.org>
Thu, 19 Mar 2020 12:08:58 +0000 (08:08 -0400)
committerNick Mathewson <nickm@torproject.org>
Thu, 19 Mar 2020 12:08:58 +0000 (08:08 -0400)
Fixes bug 33651; bug not in any released Tor.

src/feature/dirclient/dirclient.c

index e7bec89cad10d573c0166f5c77b03e9aa4abf9f2..2072dddadd8483b2a78831f70c74c6b2695ed7e2 100644 (file)
@@ -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 &&