diff OrthancServer/ServerIndex.cpp @ 270:e6a4c4329481

parameters for storage capacity
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 07 Dec 2012 15:01:12 +0100
parents f6fdf5abe751
children 337c506461d2
line wrap: on
line diff
--- a/OrthancServer/ServerIndex.cpp	Fri Dec 07 14:46:44 2012 +0100
+++ b/OrthancServer/ServerIndex.cpp	Fri Dec 07 15:01:12 2012 +0100
@@ -838,6 +838,16 @@
   {
     boost::mutex::scoped_lock lock(mutex_);
     maximumPatients_ = count;
+
+    if (count == 0)
+    {
+      LOG(WARNING) << "No limit on the number of stored patients";
+    }
+    else
+    {
+      LOG(WARNING) << "At most " << count << " patients will be stored";
+    }
+
     StandaloneRecycling();
   }
 
@@ -845,6 +855,16 @@
   {
     boost::mutex::scoped_lock lock(mutex_);
     maximumStorageSize_ = size;
+
+    if (size == 0)
+    {
+      LOG(WARNING) << "No limit on the size of the storage area";
+    }
+    else
+    {
+      LOG(WARNING) << "At most " << (size / (1024 * 1024)) << "MB will be used for the storage area";
+    }
+
     StandaloneRecycling();
   }