mirror of https://github.com/nicolargo/glances
Use alias aware sorting in glances_network
parent
7a47c32341
commit
3a68e85d5b
|
@ -289,7 +289,7 @@ class Plugin(GlancesPlugin):
|
|||
msg = '{:>7}'.format('Tx/s')
|
||||
ret.append(self.curse_add_line(msg))
|
||||
# Interface list (sorted by name)
|
||||
for i in sorted(self.stats, key=operator.itemgetter(self.get_key())):
|
||||
for i in self.sorted_stats('interface_name'):
|
||||
# Do not display interface in down state (issue #765)
|
||||
if ('is_up' in i) and (i['is_up'] is False):
|
||||
continue
|
||||
|
|
Loading…
Reference in New Issue