From 827f115b065ef274958d561997fdeb2bab89495a Mon Sep 17 00:00:00 2001 From: SiloDS Date: Fri, 30 Jul 2021 13:36:47 +0100 Subject: [PATCH] . --- app/network_utils.py | 4 ++-- app/templates/base.html | 4 ++-- app/templates/index.html | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/network_utils.py b/app/network_utils.py index 1ac3275..060b3f4 100644 --- a/app/network_utils.py +++ b/app/network_utils.py @@ -76,8 +76,8 @@ def parse_iwlist(iwlist_output, current_sid): cell["Connected"] = "Yes" else: cell["Connected"] = "" - if line.partition("Signal level=")[2].split("/")[0] != "" != -1: - cell["Signal"] = line.partition("Signal level=")[2].split("/")[0] + if line.partition("Quality=")[2].split("/")[0] != "" != -1: + cell["Signal"] = line.partition("Quality=")[2].split("/")[0] + "/70" if line.find("Encryption key:") != -1: if line.find(":on") != -1: cell["WPA"] = "WPA2" diff --git a/app/templates/base.html b/app/templates/base.html index 56e68f6..cba92ca 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -48,9 +48,9 @@ Logout {% endif %} {% if vpn %} - Disconnect + Disconnect from VPN {% else %} - Connect + Connect to VPN {% endif %}
diff --git a/app/templates/index.html b/app/templates/index.html index 483ff4e..ebdfb2b 100644 --- a/app/templates/index.html +++ b/app/templates/index.html @@ -6,7 +6,7 @@ SSID - Signal + Quality Connected Security Action