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 %}