nsmcp::ServerHistory method nonnegativeDelta (protected)

 <instance of nsmcp::ServerHistory[i]> nonnegativeDelta current \
    previous

Defined in /usr/local/ns/tcl/nsmcp/stats-tools.tcl

Parameters:
current (required)
previous (required)

Testcases:
No testcase defined.
Source code:
if {![string is double -strict $current] || ![string is double -strict $previous]
    || [catch {expr {abs($current)<1e300 && abs($previous)<1e300}} finite]
    || !$finite || $current<$previous} {
    return {}
}
return [expr {$current-$previous}]
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: