Skip to content

Commit

Permalink
ACTUALLY fixed ping results omitting metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
ocket8888 committed Aug 9, 2018
1 parent 9381c16 commit 9c8594e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions connmonitor/connmonitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,7 @@ def pingloop(self):
Runs a loop for collecting ping statistics as specified in the
configuration.
"""
# printFunc = self.printJSONPing if self.conf.JSON else self.printPing
printFunc = (lambda x: print(repr(x), flush=True)) if self.conf.JSON else (lambda x: print(str(x), flush=True))
printFunc = self.printJSONPing if self.conf.JSON else self.printPing
try:
# with multiprocessing.pool.ThreadPool(self.conf.NUMPINGS) as pool, ping.Pinger(self.host, bytes(self.conf.PAYLOAD)) as pinger:
# while True:
Expand Down

0 comments on commit 9c8594e

Please sign in to comment.