Community discussions

MikroTik App
 
Pablete
just joined
Topic Author
Posts: 22
Joined: Wed May 23, 2007 4:11 pm

Why more than 100%?

Tue Jul 10, 2007 6:24 pm

Hi all
As you may see in the probe thread, i have created a probe to measure reachability.

I have created a function:
Name: packet_loss_test
Desc: number of replied pings from 10 ping requests (0-10)
Code:
if( array_element(ping(device_property("FirstAddress")) , 0)<0 , 0 , 1 ) +
if( array_element(ping(device_property("FirstAddress")) , 0)<0 , 0 , 1 ) +
if( array_element(ping(device_property("FirstAddress")) , 0)<0 , 0 , 1 ) +
if( array_element(ping(device_property("FirstAddress")) , 0)<0 , 0 , 1 ) +
if( array_element(ping(device_property("FirstAddress")) , 0)<0 , 0 , 1 ) +
if( array_element(ping(device_property("FirstAddress")) , 0)<0 , 0 , 1 ) +
if( array_element(ping(device_property("FirstAddress")) , 0)<0 , 0 , 1 ) +
if( array_element(ping(device_property("FirstAddress")) , 0)<0 , 0 , 1 ) +
if( array_element(ping(device_property("FirstAddress")) , 0)<0 , 0 , 1 ) +
if( array_element(ping(device_property("FirstAddress")) , 0)<0 , 0 , 1 )

After this I use a probe wich multiplies for 10 and plots the result.
Why do I get more than 100%? I'm adding only TEN logical values, each one should be 0 or 1.
chart.png
This is what I get. Probably if I manage to fix this little bug I will not only get no peaks over 100% but also less notches/valleys

I'm working with Dude 3.0 Beta 6

Regards,
Pablo
You do not have the required permissions to view the files attached to this post.

Who is online

Users browsing this forum: No registered users and 11 guests