From 95ff6604198f0c946a1d8d5773dbad63878dc178 Mon Sep 17 00:00:00 2001 From: daniel-pro <43214013+daniel-pro@users.noreply.github.com> Date: Sun, 16 Dec 2018 18:28:12 +0100 Subject: Update show_ipsec_sa.py --- src/op_mode/show_ipsec_sa.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/op_mode/show_ipsec_sa.py b/src/op_mode/show_ipsec_sa.py index 3c8d678eb..9e1d6ce4d 100755 --- a/src/op_mode/show_ipsec_sa.py +++ b/src/op_mode/show_ipsec_sa.py @@ -42,8 +42,8 @@ for conn in connections: enc, hash, dh, bytes_in, bytes_out = parse_ike_line(status) # Convert bytes to human-readable units - bytes_in = hurry.filesize.size(bytes_in) - bytes_out = hurry.filesize.size(bytes_out) + bytes_in = hurry.filesize.size(int(bytes_in)) + bytes_out = hurry.filesize.size(int(bytes_out)) status_line = [conn, "up", time, "{0}/{1}".format(bytes_in, bytes_out), ip, id, "{0}/{1}/{2}".format(enc, hash, dh)] except Exception as e: -- cgit v1.2.3