Commit 21574f76 authored by Frank Bergmann's avatar Frank Bergmann

- Fixed issue with incr only accepting integer values

parent 08721cc8
......@@ -282,7 +282,7 @@
set total 0
set counter 0
foreach { handle command statement_name sql start end errno error } [nsv_get ds_request "$ad_conn(request).db"] {
incr total [expr { $end - $start }]
set total [expr int($total + $end - $start)]
if { [lsearch { dml exec 1row 0or1row select } [lindex $command 0]] >= 0 } {
incr counter
}
......@@ -293,6 +293,7 @@
return $result
}
ad_proc -private ds_collect_connection_info {} {
Collects information about the current connection.
Should be called only at the very beginning of the request processor handler.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment