Mercurial > hg > orthanc-transfers
comparison Plugin/PluginContext.cpp @ 12:34b1875c8e3a
cppcheck
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 04 Mar 2019 16:12:52 +0100 |
parents | c9e28e31262e |
children | 7d56105ab084 |
comparison
equal
deleted
inserted
replaced
11:4b9c2e0a92c8 | 12:34b1875c8e3a |
---|---|
29 size_t maxPushTransactions, | 29 size_t maxPushTransactions, |
30 size_t memoryCacheSize, | 30 size_t memoryCacheSize, |
31 unsigned int maxHttpRetries) : | 31 unsigned int maxHttpRetries) : |
32 pushTransactions_(maxPushTransactions), | 32 pushTransactions_(maxPushTransactions), |
33 semaphore_(threadsCount), | 33 semaphore_(threadsCount), |
34 pluginUuid_(Orthanc::Toolbox::GenerateUuid()), | |
34 threadsCount_(threadsCount), | 35 threadsCount_(threadsCount), |
35 targetBucketSize_(targetBucketSize), | 36 targetBucketSize_(targetBucketSize), |
36 maxHttpRetries_(maxHttpRetries) | 37 maxHttpRetries_(maxHttpRetries) |
37 { | 38 { |
38 pluginUuid_ = Orthanc::Toolbox::GenerateUuid(); | |
39 | |
40 cache_.SetMaxMemorySize(memoryCacheSize); | 39 cache_.SetMaxMemorySize(memoryCacheSize); |
41 | 40 |
42 LOG(INFO) << "Transfers accelerator will use " << threadsCount << " threads to run HTTP queries"; | 41 LOG(INFO) << "Transfers accelerator will use " << threadsCount << " threads to run HTTP queries"; |
43 LOG(INFO) << "Transfers accelerator will use keep local DICOM files in a memory cache of size: " | 42 LOG(INFO) << "Transfers accelerator will use keep local DICOM files in a memory cache of size: " |
44 << OrthancPlugins::ConvertToMegabytes(memoryCacheSize) << " MB"; | 43 << OrthancPlugins::ConvertToMegabytes(memoryCacheSize) << " MB"; |