diff OrthancServer/ServerIndex.cpp @ 2069:fabf7820d1f1

New configuration options: "DicomScuTimeout" and "DicomScpTimeout" + validation of non-negative options
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 13 Jul 2016 16:52:39 +0200
parents b1291df2f780
children 1824a02e0951
line wrap: on
line diff
--- a/OrthancServer/ServerIndex.cpp	Wed Jul 13 16:10:25 2016 +0200
+++ b/OrthancServer/ServerIndex.cpp	Wed Jul 13 16:52:39 2016 +0200
@@ -1848,7 +1848,7 @@
 
   void ServerIndex::UnstableResourcesMonitorThread(ServerIndex* that)
   {
-    int stableAge = Configuration::GetGlobalIntegerParameter("StableAge", 60);
+    int stableAge = Configuration::GetGlobalUnsignedIntegerParameter("StableAge", 60);
     if (stableAge <= 0)
     {
       stableAge = 60;