summaryrefslogtreecommitdiff
path: root/cpp/src/IcePatch/Server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/IcePatch/Server.cpp')
-rw-r--r--cpp/src/IcePatch/Server.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/cpp/src/IcePatch/Server.cpp b/cpp/src/IcePatch/Server.cpp
index 2b1644eba48..9b27b943d2e 100644
--- a/cpp/src/IcePatch/Server.cpp
+++ b/cpp/src/IcePatch/Server.cpp
@@ -158,10 +158,11 @@ IcePatch::Updater::run()
IceUtil::Monitor<IceUtil::Mutex>::Lock sync(*this);
PropertiesPtr properties = _adapter->getCommunicator()->getProperties();
- Int updatePeriod = properties->getPropertyAsIntWithDefault("IcePatch.UpdatePeriod", 60);
- if (updatePeriod < 10)
+ IceUtil::Time updatePeriod = IceUtil::Time::seconds(
+ properties->getPropertyAsIntWithDefault("IcePatch.UpdatePeriod", 60));
+ if (updatePeriod < IceUtil::Time::seconds(10))
{
- updatePeriod = 10;
+ updatePeriod = IceUtil::Time::seconds(10);
}
while (!_destroy)
@@ -207,7 +208,7 @@ IcePatch::Updater::run()
break;
}
- timedWait(updatePeriod * 1000);
+ timedWait(updatePeriod);
}
}