Skip to content

Commit

Permalink
More consistent ping fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
ocket8888 committed Aug 7, 2018
1 parent 50e033d commit 96471e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion connvitals/collector.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def ping(self, pool:multiprocessing.pool.ThreadPool, pinger:ping.Pinger = None):
if rtt:
self.result[0] = utils.PingResult(min(rtt), avg, max(rtt), std, lost/self.conf.NUMPINGS *100.0)
else:
self.result[0] = utils.PingResult(-1., -1., -1., -1, 100.0)
self.result[0] = type(self).result[0]


def __str__(self) -> str:
Expand Down

0 comments on commit 96471e4

Please sign in to comment.