fixed RTT calculation, passing only IP to RTT fuction
fixed merge conflict