From a23d13db0b2ca4f79fe8fefb91459476bef0892f Mon Sep 17 00:00:00 2001 From: Marcus Furlong Date: Wed, 2 Sep 2020 09:25:59 -0400 Subject: [PATCH] sort by duration (#169) fixes #154 --- openvpn-monitor.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/openvpn-monitor.py b/openvpn-monitor.py index 32d4b07..3a77f1e 100755 --- a/openvpn-monitor.py +++ b/openvpn-monitor.py @@ -572,9 +572,13 @@ def print_html_header(self): output('') # noqa output('') # noqa output('') # noqa - output('') # noqa + output('') # noqa + output('') # noqa output('') if self.maps: output('') # noqa @@ -643,7 +647,10 @@ def print_session_table_headers(vpn_mode, show_disconnect): output('tablesorter tablesorter-bootstrap">') output('') for header in headers: - output('{0!s}'.format(header)) + if header == 'Time Online': + output('{0!s}'.format(header)) + else: + output('{0!s}'.format(header)) output('') @staticmethod