mirror of
https://github.com/nicolargo/glances.git
synced 2025-01-03 07:03:40 +03:00
Added using locale settings to encode wifi ssid. Replace any unknown … #1186
This commit is contained in:
parent
53d180c4a8
commit
a47bf1a76b
@ -21,6 +21,7 @@
|
||||
|
||||
import operator
|
||||
|
||||
from glances.compat import u
|
||||
from glances.logger import logger
|
||||
from glances.plugins.glances_plugin import GlancesPlugin
|
||||
|
||||
@ -194,7 +195,7 @@ class Plugin(GlancesPlugin):
|
||||
if len(hotspotname) > ifname_max_width:
|
||||
hotspotname = '_' + hotspotname[-ifname_max_width + 1:]
|
||||
# Add the new hotspot to the message
|
||||
msg = '{:{width}}'.format(hotspotname,
|
||||
msg = '{:{width}}'.format(u(hotspotname),
|
||||
width=ifname_max_width)
|
||||
ret.append(self.curse_add_line(msg))
|
||||
msg = '{:>7}'.format(i['signal'], width=ifname_max_width)
|
||||
|
Loading…
Reference in New Issue
Block a user