Mercurial > hg > orthanc
comparison OrthancServer/Sources/ServerIndex.cpp @ 5430:b83192e7ad10
Now displaying timings when reading from/writing to disk in the verbose logs
author | Alain Mazy <am@osimis.io> |
---|---|
date | Mon, 20 Nov 2023 17:01:48 +0100 |
parents | 03501a258d9e |
children | 9ffd6d18daf3 |
comparison
equal
deleted
inserted
replaced
5429:d40ac28b9702 | 5430:b83192e7ad10 |
---|---|
34 #include "ServerContext.h" | 34 #include "ServerContext.h" |
35 #include "ServerIndexChange.h" | 35 #include "ServerIndexChange.h" |
36 #include "ServerToolbox.h" | 36 #include "ServerToolbox.h" |
37 | 37 |
38 | 38 |
39 static const uint64_t MEGA_BYTES = 1024 * 1024; | |
40 | |
41 namespace Orthanc | 39 namespace Orthanc |
42 { | 40 { |
43 class ServerIndex::TransactionContext : public StatelessDatabaseOperations::ITransactionContext | 41 class ServerIndex::TransactionContext : public StatelessDatabaseOperations::ITransactionContext |
44 { | 42 { |
45 private: | 43 private: |
400 { | 398 { |
401 LOG(WARNING) << "No limit on the size of the storage area"; | 399 LOG(WARNING) << "No limit on the size of the storage area"; |
402 } | 400 } |
403 else | 401 else |
404 { | 402 { |
405 LOG(WARNING) << "At most " << (size / MEGA_BYTES) << "MB will be used for the storage area"; | 403 LOG(WARNING) << "At most " << Toolbox::GetHumanFileSize(size) << " will be used for the storage area"; |
406 } | 404 } |
407 } | 405 } |
408 | 406 |
409 StandaloneRecycling(maximumStorageMode_, maximumStorageSize_, maximumPatients_); | 407 StandaloneRecycling(maximumStorageMode_, maximumStorageSize_, maximumPatients_); |
410 } | 408 } |