Explorar el Código

Initialize DownloadEngine::tokenAverageDuration_ to something.

Nils Maier hace 11 años
padre
commit
fd8dc921fe
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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);