diff Framework/Oracle/ThreadedOracle.cpp @ 760:1181e1ad98ec

progressive loading working
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 22 May 2019 18:34:06 +0200
parents ab236bb5dbc7
children f6438fdc447e
line wrap: on
line diff
--- a/Framework/Oracle/ThreadedOracle.cpp	Wed May 22 17:25:44 2019 +0200
+++ b/Framework/Oracle/ThreadedOracle.cpp	Wed May 22 18:34:06 2019 +0200
@@ -87,7 +87,7 @@
           throw Orthanc::OrthancException(Orthanc::ErrorCode_NullPointer);
         }
 
-        expiration_ = (boost::posix_time::second_clock::local_time() + 
+        expiration_ = (boost::posix_time::microsec_clock::local_time() + 
                        boost::posix_time::milliseconds(command_->GetDelay()));
       }
 
@@ -134,7 +134,7 @@
     {
       boost::mutex::scoped_lock lock(mutex_);
 
-      const boost::posix_time::ptime now = boost::posix_time::second_clock::local_time();
+      const boost::posix_time::ptime now = boost::posix_time::microsec_clock::local_time();
 
       Content  stillSleeping;
         
@@ -439,7 +439,7 @@
   }
 
 
-  void ThreadedOracle::SetWorkersCount(unsigned int count)
+  void ThreadedOracle::SetThreadsCount(unsigned int count)
   {
     boost::mutex::scoped_lock lock(mutex_);