fprintf(pingFile,"IP = %s Sent = %ld Receive = %ld Lost = %ld Min = %lu.%lu ms Max = %lu.%lu ms Average = %lu.%lu ms \n",
ip, ntransmitted, nreceived, (ntransmitted-nreceived),
(tmin / 10), (tmin % 10),
(tmax / 10), (tmax % 10),
((tsum / (nreceived + nrepeats)) / 10),
((tsum / (nreceived + nrepeats)) % 10));
fprintf(pingFile,"IP = %s Sent = %ld Receive = %ld Lost = %ld Min = %lu.%lu ms Max = %lu.%lu ms Average = %lu.%lu ms \n",
ip, ntransmitted, nreceived, (ntransmitted-nreceived),
(tmin / 10), (tmin % 10),
(tmax / 10), (tmax % 10),
((tsum / (nreceived + nrepeats)) / 10),
((tsum / (nreceived + nrepeats)) % 10));