mirror of
https://github.com/nicolargo/glances.git
synced 2024-12-29 20:21:35 +03:00
Another patch bis for non root user on Mac OS X - issue #423
This commit is contained in:
parent
5ff1caa051
commit
a296f5cea9
@ -343,7 +343,7 @@ class Plugin(GlancesPlugin):
|
|||||||
listsorted = sorted(self.stats,
|
listsorted = sorted(self.stats,
|
||||||
key=lambda process: process[sortedby],
|
key=lambda process: process[sortedby],
|
||||||
reverse=sortedreverse)
|
reverse=sortedreverse)
|
||||||
except KeyError, TypeError:
|
except (KeyError, TypeError):
|
||||||
listsorted = sorted(self.stats,
|
listsorted = sorted(self.stats,
|
||||||
key=lambda process: process['name'],
|
key=lambda process: process['name'],
|
||||||
reverse=False)
|
reverse=False)
|
||||||
|
Loading…
Reference in New Issue
Block a user