Merge branch 'master' of git://github.com/AlibabaTech/druid

This commit is contained in:
shrek.wang
2012-08-17 15:54:21 +08:00
6 changed files with 117 additions and 11 deletions
@@ -360,10 +360,11 @@ public final class JdbcSqlStat implements JdbcSqlStatMBean {
}
public void addExecuteTime(StatementExecuteType executeType, boolean firstResultSet, long nanoSpan) {
addExecuteTime(nanoSpan);
if (StatementExecuteType.ExecuteQuery != executeType && !firstResultSet) {
executeAndResultHoldTimeHistogram.record((nanoSpan) / 1000 / 1000);
}
addExecuteTime(nanoSpan);
}
public void addExecuteTime(long nanoSpan) {