Browse Source

Initialize DownloadEngine::tokenAverageDuration_ to something.

Nils Maier 11 năm trước cách đây
mục cha
commit
fd8dc921fe
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      src/DownloadEngine.cc

+ 2 - 1
src/DownloadEngine.cc

@@ -112,7 +112,8 @@ DownloadEngine::DownloadEngine(std::unique_ptr<EventPoll> eventPoll)
 #endif // HAVE_ARES_ADDR_NODE
     dnsCache_(make_unique<DNSCache>()),
     option_(nullptr),
-    tokenIterations_(5000)
+    tokenIterations_(5000),
+    tokenAverageDuration_(0.0)
 {
   unsigned char sessionId[20];
   util::generateRandomKey(sessionId);