Disable --tree option on non-Linux platforms (update)

This commit is contained in:
Alessio Sergi 2015-05-03 11:11:29 +02:00
parent a912805ae9
commit e168e2d97b

View File

@ -57,9 +57,12 @@ class GlancesStandalone(object):
# Ignore kernel threads in process list
glances_processes.disable_kernel_threads()
if args.process_tree:
# Enable process tree view
glances_processes.enable_tree()
try:
if args.process_tree:
# Enable process tree view
glances_processes.enable_tree()
except AttributeError:
pass
# Initial system informations update
self.stats.update()