proc status:evnt:connect {filter} {
if {![info exits $testuptime]} {
set testuptime [clock clicks -milliseconds]
}
putlog "$test"
}
proc status:evnt:disconnect {filter} {
global testuptime
set wtest [expr [expr [clock clicks -milliseconds]-$testuptime]/1000.00]
putlog "$wtest"
}
Error:
Tcl error [status:evnt:connect]: can't read "testuptime": no such variable
I bet you it is something real simple... But i cant work it out. If there is any other way that is more user friendly or work better i would love to know. Thanx for anyhelp