diff options
author | daniel-pro <43214013+daniel-pro@users.noreply.github.com> | 2018-12-16 18:28:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-16 18:28:12 +0100 |
commit | 95ff6604198f0c946a1d8d5773dbad63878dc178 (patch) | |
tree | b6221e2ab498c1c5eb142e20d2d9aa781a1cedd4 /src/op_mode/show_ipsec_sa.py | |
parent | e734b846ec53f9950da562ea27676f63ac5c1599 (diff) | |
download | vyos-1x-95ff6604198f0c946a1d8d5773dbad63878dc178.tar.gz vyos-1x-95ff6604198f0c946a1d8d5773dbad63878dc178.zip |
Update show_ipsec_sa.py
Diffstat (limited to 'src/op_mode/show_ipsec_sa.py')
-rwxr-xr-x | src/op_mode/show_ipsec_sa.py | 4 |
1 files changed, 2 insertions, 2 deletions
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: |