提交 11908c6a 编写于 作者: N nicolargo

Add core docs

上级 18653849
......@@ -23,6 +23,17 @@ from glances.plugins.glances_plugin import GlancesPlugin
import psutil
# Fields description
# - phys: physical cores only (hyper thread CPUs are excluded)
# - log: logical CPUs in the system
fields_description = {
'phys': {'description': 'Number of physical cores (hyper thread CPUs are excluded).',
'unit': 'number'},
'log': {'description': 'Number of logical CPUs. A logical CPU is the number of \
physical cores multiplied by the number of threads that can run on each core.',
'unit': 'number'},
}
class Plugin(GlancesPlugin):
"""Glances CPU core plugin.
......@@ -34,7 +45,9 @@ class Plugin(GlancesPlugin):
def __init__(self, args=None, config=None):
"""Init the plugin."""
super(Plugin, self).__init__(args=args, config=config)
super(Plugin, self).__init__(args=args,
config=config,
fields_description=fields_description)
# We dot not want to display the stat in the curse interface
# The core number is displayed by the load plugin
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册