mirror of
https://github.com/nicolargo/glances.git
synced 2024-11-29 15:32:25 +03:00
Merge pull request #466 from desbma/web
Support --hide-kernel-threads option for web interface
This commit is contained in:
commit
d2b40fd9a5
@ -20,6 +20,8 @@
|
||||
"""Glances Web Interface (Bottle based)."""
|
||||
|
||||
# Import Glances libs
|
||||
from glances.core.glances_globals import is_windows
|
||||
from glances.core.glances_processes import glances_processes
|
||||
from glances.core.glances_stats import GlancesStats
|
||||
from glances.outputs.glances_bottle import GlancesBottle
|
||||
|
||||
@ -32,6 +34,10 @@ class GlancesWebServer(object):
|
||||
# Init stats
|
||||
self.stats = GlancesStats(config)
|
||||
|
||||
if (not is_windows) and args.no_kernel_threads:
|
||||
# Ignore kernel threads in process list
|
||||
glances_processes.disable_kernel_threads()
|
||||
|
||||
# Initial system informations update
|
||||
self.stats.update()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user