Skip to content

ICMPEventArgs Statistics bugs #3808

@ngjermundshaug

Description

@ngjermundshaug

Runnind code almost identical to this - with a low timeout limit that sometimes leads to timeouts.
https://github.com/pocoproject/poco/blob/master/Net/samples/Ping/src/Ping.cpp

Pinging vmsh37.ha-node.net [203.98.95.65] with 48 bytes of data
Reply from 203.98.95.65 bytes=48 time=303ms TTL=128
Ping error: 203.98.95.65: Request timed out.
Reply from 203.98.95.65 bytes=48 time=304ms TTL=128
Ping statistics for vmsh37.ha-node.net Packets: Sent=3, Packets Received=2 Lost=1 (33.333328% loss)
Approximate round trip times in milliseconds: Minimum=0ms, Maximum=304ms, Average=202ms

The calculated Minimum and Average values in ICMPEventArgs are wrong - timeout's should not be added as 0 values.
Minimum should be 303ms, Average should be 303ms.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions