add stat service

This commit is contained in:
wenshao
2012-08-04 08:01:22 +08:00
parent 2b2eb9ee82
commit 33f2b2948a
3 changed files with 7 additions and 3 deletions
@@ -109,7 +109,7 @@ public class JdbcDataSourceStat implements JdbcDataSourceStatMBean {
while (iter.hasNext()) {
Map.Entry<String, JdbcSqlStat> entry = iter.next();
JdbcSqlStat stat = entry.getValue();
if (stat.getExecuteCount() == 0) {
if (stat.getExecuteCount() == 0 && stat.getRunningCount() == 0) {
iter.remove();
} else {
stat.reset();