# HG changeset patch # User Alain Mazy # Date 1696603611 -7200 # Node ID c1037a755ceeeda19ec90e3cfafcafc63e966dd9 # Parent 002ba12a8beee1cb87ca136f2dd8f4b728bfadc0 housekeeper: added sleep when idle diff -r 002ba12a8bee -r c1037a755cee NEWS --- a/NEWS Tue Oct 03 11:55:43 2023 +0200 +++ b/NEWS Fri Oct 06 16:46:51 2023 +0200 @@ -23,6 +23,7 @@ * Prevent the leak of the full path of the source files in the binaries * Fix loading of DCMTK dictionary in the MultitenantDicom plugin when built dynamically: https://discourse.orthanc-server.org/t/dimse-failure-using-multitenant-plugin/3665 +* Housekeeper: Introduced a 'sleep' to lower CPU usage when idle. Version 1.12.1 (2023-07-04) diff -r 002ba12a8bee -r c1037a755cee OrthancServer/Plugins/Samples/Housekeeper/Plugin.cpp --- a/OrthancServer/Plugins/Samples/Housekeeper/Plugin.cpp Tue Oct 03 11:55:43 2023 +0200 +++ b/OrthancServer/Plugins/Samples/Housekeeper/Plugin.cpp Fri Oct 06 16:46:51 2023 +0200 @@ -703,6 +703,8 @@ OrthancPlugins::LogInfo("Housekeeper: entering quiet period"); loggedNotRightPeriodChangeMessage = true; } + + boost::this_thread::sleep(boost::posix_time::milliseconds(1000)); } }