summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/broker/AutoDelete.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/qpid/broker/AutoDelete.cpp')
-rw-r--r--cpp/src/qpid/broker/AutoDelete.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/cpp/src/qpid/broker/AutoDelete.cpp b/cpp/src/qpid/broker/AutoDelete.cpp
index d96105ba7d..3d8e233768 100644
--- a/cpp/src/qpid/broker/AutoDelete.cpp
+++ b/cpp/src/qpid/broker/AutoDelete.cpp
@@ -15,7 +15,8 @@
* limitations under the License.
*
*/
-#include "qpid/broker/AutoDelete.h"
+#include <qpid/broker/AutoDelete.h>
+#include <qpid/sys/Time.h>
using namespace qpid::broker;
using namespace qpid::sys;
@@ -59,7 +60,7 @@ void AutoDelete::run(){
Monitor::ScopedLock l(monitor);
while(!stopped){
process();
- monitor.wait(msecsToNsecs(period));
+ monitor.wait(period * Time::NSEC_PER_MSEC);
}
}