Thanks to @JohnKap the response times in the gateway plugin (3.7) now work. The fix would most likely work witht he 2.7 script as well, but I don't have time to test at the moment.
This commit is contained in:
parent
c4d6094e5a
commit
80963d9652
@ -16,6 +16,6 @@ for sock_name in glob.glob("dpinger*.sock"):
|
|||||||
s = sock.connect(sock_path)
|
s = sock.connect(sock_path)
|
||||||
line = sock.recv(1024).decode().split('\n', 1)[0]
|
line = sock.recv(1024).decode().split('\n', 1)[0]
|
||||||
values = line.split()
|
values = line.split()
|
||||||
print("gateways,gateway_name="+values[0]+" rtt="+str(int(values[1])/100.0)+ \
|
print("gateways,gateway_name="+values[0]+" rtt="+str(int(values[1])/1.0)+ \
|
||||||
",rttsd="+str(int(values[2])/100.0)+",loss="+str(int(values[3]))+"i")
|
",rttsd="+str(int(values[2])/1.0)+",loss="+str(int(values[3]))+"i")
|
||||||
sock.close()
|
sock.close()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user