Mercurial > hg > orthanc
comparison OrthancServer/Sources/ServerIndex.cpp @ 5819:7c2b4fa94633 find-refactoring tip
ReadOnly transactions
author | Alain Mazy <am@orthanc.team> |
---|---|
date | Fri, 27 Sep 2024 14:38:20 +0200 |
parents | 272b0d0eef38 |
children |
comparison
equal
deleted
inserted
replaced
5817:272b0d0eef38 | 5819:7c2b4fa94633 |
---|---|
269 void ServerIndex::UpdateStatisticsThread(ServerIndex* that, | 269 void ServerIndex::UpdateStatisticsThread(ServerIndex* that, |
270 unsigned int threadSleepGranularityMilliseconds) | 270 unsigned int threadSleepGranularityMilliseconds) |
271 { | 271 { |
272 Logging::SetCurrentThreadName("DB-STATS"); | 272 Logging::SetCurrentThreadName("DB-STATS"); |
273 | 273 |
274 static const unsigned int SLEEP_SECONDS = 60; | 274 static const unsigned int SLEEP_SECONDS = 10; |
275 | 275 |
276 if (threadSleepGranularityMilliseconds > 1000) | 276 if (threadSleepGranularityMilliseconds > 1000) |
277 { | 277 { |
278 throw OrthancException(ErrorCode_ParameterOutOfRange); | 278 throw OrthancException(ErrorCode_ParameterOutOfRange); |
279 } | 279 } |