Quantcast
Channel: MikroTik
Viewing all articles
Browse latest Browse all 19714

Scripting • Re: Adjusting netwatch ICMP check by % of current RTT values... `$scalenetwatch`

$
0
0
I am not sure to understand. :-?

In your script at some point you need to divide (by 2 or by 4).
If you can divide, you can normally also multiply.
So what is the issue in dividing by 100 and then multiply by 25 or 50?

Or if you can only divide for *whatever reason*, why cannot you pre-calculate denom from percentage?
I.e.
denom=4 is the inverse of the fraction 1/4 which can be expressed as 25/100, so the inverse is 100/25.
denom=2 is the inverse of the fraction 1/2 which can be expressed as 50/100, so the inverse is 100/50.

Statistics: Posted by jaclaz — Tue Mar 12, 2024 6:41 pm



Viewing all articles
Browse latest Browse all 19714

Trending Articles