bug fixed for updateCount

This commit is contained in:
温少
2012-04-18 18:15:28 +08:00
parent 45e3b6cc17
commit 1a34f02314
@@ -230,7 +230,10 @@ public final class JdbcSqlStat implements JdbcSqlStatMBean {
}
public void addUpdateCount(int delta) {
this.updateCount.addAndGet(delta);
if (delta > 0) {
this.updateCount.addAndGet(delta);
}
this.updateCountHistogram.recode(delta);
this.fetchRowCountHistogram.recode(0);