summaryrefslogtreecommitdiff
path: root/src/DownloadEngine.cc
diff options
context:
space:
mode:
authorNils Maier <maierman@web.de>2014-05-27 18:32:05 +0200
committerNils Maier <maierman@web.de>2014-05-27 19:10:14 +0200
commitfd8dc921fe682c2339ad23c83fd456e430fcbf3c (patch)
tree00d4c87d59d0340aab8d0fd08a9b4d810bc2d12f /src/DownloadEngine.cc
parentf8db60e54e59a4e2e0a4e258ab5ba2c88ba4dfa9 (diff)
Initialize DownloadEngine::tokenAverageDuration_ to something.
Diffstat (limited to 'src/DownloadEngine.cc')
-rw-r--r--src/DownloadEngine.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/DownloadEngine.cc b/src/DownloadEngine.cc
index be62dd84..cee9e531 100644
--- a/src/DownloadEngine.cc
+++ b/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);