projects
/
metaproxy-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91f76ee
)
Use Win32 Sleep
author
Adam Dickmeiss
<adam@indexdata.dk>
Wed, 13 Jan 2010 21:17:32 +0000
(22:17 +0100)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Wed, 13 Jan 2010 21:17:32 +0000
(22:17 +0100)
src/filter_limit.cpp
patch
|
blob
|
history
diff --git
a/src/filter_limit.cpp
b/src/filter_limit.cpp
index
2b58fa6
..
784f68a
100644
(file)
--- 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 <yazpp/timestat.h>
#include <metaproxy/package.hpp>
#include <metaproxy/util.hpp>
+#ifdef WIN32
+#include <windows.h>
+#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
}
}