diff options
author | Matthew Newhook <matthew@zeroc.com> | 2002-04-22 22:16:29 +0000 |
---|---|---|
committer | Matthew Newhook <matthew@zeroc.com> | 2002-04-22 22:16:29 +0000 |
commit | b3926429557017367ad4c92d8fd42f17786e8c61 (patch) | |
tree | 38fc04618f3a8d0e280ac6da0b1f863677e3d012 /cpp/src/IcePatch/Server.cpp | |
parent | Added IceUtil/Time.h (diff) | |
download | ice-b3926429557017367ad4c92d8fd42f17786e8c61.tar.bz2 ice-b3926429557017367ad4c92d8fd42f17786e8c61.tar.xz ice-b3926429557017367ad4c92d8fd42f17786e8c61.zip |
time updates.
Diffstat (limited to 'cpp/src/IcePatch/Server.cpp')
-rw-r--r-- | cpp/src/IcePatch/Server.cpp | 9 |
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); } } |