boomerang::handler proc latest_value (protected)
boomerang::handler latest_value entries field
Defined in packages/xotcl-core/tcl/01-debug-procs.tcl
When client comes to a premature end, take the latest time. Note that some values below might become negative in such situations, but this is handled via sanity checks.
- Parameters:
- entries (required)
- field (required)
- Testcases:
- No testcase defined.
Source code: # # When client comes to a premature end, take # the latest time. Note that some values below # might become negative in such situations, # but this is handled via sanity checks. # set l $entries set l1 [lsort -integer -stride 2 -index 1 [concat {*}[lmap {key value} $l { if {![string is entier -strict $value]} continue list $key $value }]]] set latest_value [lindex $l1 end] ns_log warning "boomerang: set missing '$field' to latest value from " [lindex $l1 end-1] $latest_value \n $l1 return $latest_valueXQL Not present: Generic, PostgreSQL, Oracle