From e24ae4e9eafae7afaad712d4b96208622d9ffa78 Mon Sep 17 00:00:00 2001 From: ocket8888 Date: Thu, 9 Aug 2018 10:46:13 -0600 Subject: [PATCH] fixed broken sequential ping; patch version increment --- connvitals/__init__.py | 2 +- connvitals/collector.py | 3 +-- connvitals/ping.py | 1 + 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/connvitals/__init__.py b/connvitals/__init__.py index dee577c..ccdfea6 100644 --- a/connvitals/__init__.py +++ b/connvitals/__init__.py @@ -29,7 +29,7 @@ """ -__version__ = "4.3.0" +__version__ = "4.3.1" __author__ = "Brennan Fieck" def main() -> int: diff --git a/connvitals/collector.py b/connvitals/collector.py index b78e007..acfdf78 100644 --- a/connvitals/collector.py +++ b/connvitals/collector.py @@ -84,8 +84,7 @@ def run(self): try: self.pipe[1].send(self.result) except OSError as e: - utils.error(e) - utils.error("WAT", True) + utils.error(OSError("Error sending results: %s" % e)) def ping(self, pool:multiprocessing.pool.ThreadPool, pinger:ping.Pinger = None): """ diff --git a/connvitals/ping.py b/connvitals/ping.py index 22289d8..a8ec8f0 100644 --- a/connvitals/ping.py +++ b/connvitals/ping.py @@ -21,6 +21,7 @@ import struct import time import sys +import math from . import utils from . import icmp