unformated timeticks

Francois.Junique@jet.uk
Wed, 8 Nov 95 16:41:16 GMT

We are using scotty (not tkined) to record some traffic statistics

we have found the following "problem":

set result [$sess get sysUpTime.0 varA.0]
set t [mib scan sysUpTime [lindex [lindex $result 0] 2]]
set val [lindex [lindex $result 1] 2]
puts [expr ($val - $mval) * 100. / ($t - $mt)]

with "mval" and "mt" being the values from the previous poll
to get the variation of "varA" per second

It is working fine except that we have to do a mib scan each time!!
How can we avoid this formating/unformating each time for timeticks

Many thanks

Francois
'

+--- * * * ----+ Francois JUNIQUE Network Co-ordinator
! * * ! e-mail: francois.junique@jet.uk
! * J.E.T * ! tel: +44 (1235) 46 44 63 fax: +44 (1235) 46 44 04
! * * ! add: JET Joint Undertaking, CODAS division
+--- * * * ----+ Abingdon, Oxon OX14 3EA, Great-Britain