Initialize DownloadEngine::tokenAverageDuration_ to something.

pull/235/head
Nils Maier 2014-05-27 18:32:05 +02:00
parent f8db60e54e
commit fd8dc921fe
1 changed files with 2 additions and 1 deletions

View File

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