projects
/
metaproxy-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Include win headers for send/recv
[metaproxy-moved-to-github.git]
/
src
/
filter_limit.cpp
diff --git
a/src/filter_limit.cpp
b/src/filter_limit.cpp
index
b97d3f0
..
784f68a
100644
(file)
--- a/
src/filter_limit.cpp
+++ b/
src/filter_limit.cpp
@@
-22,8
+22,11
@@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#include <time.h>
#include <yaz/log.h>
#include <yazpp/timestat.h>
#include <time.h>
#include <yaz/log.h>
#include <yazpp/timestat.h>
-#include "package.hpp"
-#include "util.hpp"
+#include <metaproxy/package.hpp>
+#include <metaproxy/util.hpp>
+#ifdef WIN32
+#include <windows.h>
+#endif
namespace mp = metaproxy_1;
namespace yf = mp::filter;
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);
if (reduce)
{
yaz_log(YLOG_LOG, "sleeping %d seconds", reduce);
+#ifdef WIN32
+ Sleep(reduce * 1000);
+#else
sleep(reduce);
sleep(reduce);
+#endif
}
}
}
}