-Fix: use synchronous to calculate the ping latency