mirror of
https://github.com/nicolargo/glances.git
synced 2024-12-27 19:25:27 +03:00
Add log message for max_processes
This commit is contained in:
parent
af3c76e7b5
commit
a809268545
@ -20,6 +20,7 @@
|
||||
"""Manage the Glances standalone session."""
|
||||
|
||||
# Import Glances libs
|
||||
from glances.core.glances_globals import logger
|
||||
from glances.core.glances_stats import GlancesStats
|
||||
from glances.outputs.glances_curses import GlancesCurses
|
||||
from glances.core.glances_globals import glances_processes
|
||||
@ -36,8 +37,10 @@ class GlancesStandalone(object):
|
||||
# If configured, set the maximum processes number to display
|
||||
try:
|
||||
max_processes = int(self.stats.get_plugin('processlist').get_conf_value('max_processes'))
|
||||
logger.debug(_("Limit maximum displayed processes to %s") % max_processes)
|
||||
except:
|
||||
max_processes = None
|
||||
logger.warning(_("Maximum displayed processes is not configured (high CPU consumption)"))
|
||||
glances_processes.set_max_processes(max_processes)
|
||||
|
||||
# Initial system informations update
|
||||
|
Loading…
Reference in New Issue
Block a user