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
Version 1.0.23. Bump copyright year.
[metaproxy-moved-to-github.git]
/
src
/
filter_limit.cpp
diff --git
a/src/filter_limit.cpp
b/src/filter_limit.cpp
index
c43608f
..
b97d3f0
100644
(file)
--- a/
src/filter_limit.cpp
+++ b/
src/filter_limit.cpp
@@
-1,5
+1,5
@@
/* This file is part of Metaproxy.
/* This file is part of Metaproxy.
- Copyright (C) 2005-2009 Index Data
+ Copyright (C) 2005-2010 Index Data
Metaproxy is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
Metaproxy is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
@@
-21,7
+21,7
@@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#include <time.h>
#include <yaz/log.h>
#include <time.h>
#include <yaz/log.h>
-#include <yazpp/bw.h>
+#include <yazpp/timestat.h>
#include "package.hpp"
#include "util.hpp"
#include "package.hpp"
#include "util.hpp"
@@
-32,9
+32,9
@@
namespace metaproxy_1 {
namespace filter {
class Limit::Ses {
public:
namespace filter {
class Limit::Ses {
public:
- yazpp_1::Yaz_bw bw_stat;
- yazpp_1::Yaz_bw pdu_stat;
- yazpp_1::Yaz_bw search_stat;
+ yazpp_1::TimeStat bw_stat;
+ yazpp_1::TimeStat pdu_stat;
+ yazpp_1::TimeStat search_stat;
Ses() : bw_stat(60), pdu_stat(60), search_stat(60) {};
};
Ses() : bw_stat(60), pdu_stat(60), search_stat(60) {};
};
@@
-183,7
+183,10
@@
void yf::Limit::Impl::process(mp::Package &package)
}
}
if (package.session().is_closed())
}
}
if (package.session().is_closed())
+ {
m_sessions.erase(package.session());
m_sessions.erase(package.session());
+ delete ses;
+ }
}
if (reduce)
{
}
if (reduce)
{