diff --git a/connvitals/collector.py b/connvitals/collector.py index b50de3c..b78e007 100644 --- a/connvitals/collector.py +++ b/connvitals/collector.py @@ -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: