mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-31 21:13:00 +02:00
cli_pretty: Wi-Fi: signal-strenght to text was inverted
Should be like this: ┌────────────┬────────────────────┐ │ RSSI (dBm) │ Status │ ├────────────┼────────────────────┤ │ ≥ -50 │ excellent (strong) │ ├────────────┼────────────────────┤ │ -60 to -51 │ good │ ├────────────┼────────────────────┤ │ -70 to -61 │ poor │ ├────────────┼────────────────────┤ │ < -70 │ bad (weak) │ └────────────┴────────────────────┘
This commit is contained in:
@@ -568,9 +568,9 @@ class Decore():
|
||||
def signal_to_status(signal):
|
||||
if signal >= -50:
|
||||
status = Decore.bright_green("excellent")
|
||||
elif signal <= -65:
|
||||
elif signal >= -60:
|
||||
status = Decore.green("good")
|
||||
elif signal <= -50:
|
||||
elif signal >= -70:
|
||||
status = Decore.yellow("poor")
|
||||
else:
|
||||
status = Decore.red("bad")
|
||||
|
||||
Reference in New Issue
Block a user