romana / multi-ping

Python library to monitor one or many IP addresses via ICMP echo (ping) requests

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ping times incorrect

riban-bw opened this issue · comments

All the response times from using MultiPing on a set of remove hosts seem to be broadly the same and not the actual ping time of each server. For example the results are all approx. 5ms when the actual ping time to each host are 34ms, 50ms, etc.

This does not seem to be giving ping times that relate to the actual host ping times.

Running on Raspberry Pi 64-bit Debian 12 Bookworm.

Update: I realised by debugging the code that the time is measured during a python loop (that may be slow) from when send() is called. Any delay between send and receive makes this fail. It would be better to be able to trigger both in the same call.