From: Adam Dickmeiss Date: Wed, 13 Jan 2010 21:17:32 +0000 (+0100) Subject: Use Win32 Sleep X-Git-Tag: v1.1.0~7^2~2 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=23520f51076f0833f9a1716e87633fd92e9d0b69;p=metaproxy-moved-to-github.git Use Win32 Sleep --- diff --git a/src/filter_limit.cpp b/src/filter_limit.cpp index 2b58fa6..784f68a 100644 --- a/src/filter_limit.cpp +++ b/src/filter_limit.cpp @@ -24,6 +24,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #include #include #include +#ifdef WIN32 +#include +#endif namespace mp = metaproxy_1; namespace yf = mp::filter; @@ -191,7 +194,11 @@ void yf::Limit::Impl::process(mp::Package &package) if (reduce) { yaz_log(YLOG_LOG, "sleeping %d seconds", reduce); +#ifdef WIN32 + Sleep(reduce * 1000); +#else sleep(reduce); +#endif } }