fix calc_rtt

closes #192
Merge pull request #598 from LudwigOrtmann/ping_rtt

fix calc_rtt