提交 00353363 编写于 作者: N Nicolargo

Add view (MVC speeking) for the plugins. CPU OK.

上级 c8138029
......@@ -22,6 +22,7 @@
import psutil
from glances.plugins.glances_plugin import GlancesPlugin
from glances.core.glances_logging import logger
# SNMP OID
# percentage of user CPU time: .1.3.6.1.4.1.2021.11.9.0
......@@ -158,6 +159,8 @@ class Plugin(GlancesPlugin):
if key in self.stats:
self.views[key]['optional'] = True
logger.info(self.views)
def msg_curse(self, args=None):
"""Return the list to display in the UI"""
# Init the return message
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册