proc_stats: replace references to "plugin" with "component"

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Arksine 2021-03-18 08:24:20 -04:00
parent fe8c7af79f
commit 480430720f
1 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ class ProcStats:
self.vcgencmd = None self.vcgencmd = None
if os.path.exists(VC_GEN_CMD_FILE): if os.path.exists(VC_GEN_CMD_FILE):
logging.info("Detected 'vcgencmd', throttle checking enabled") logging.info("Detected 'vcgencmd', throttle checking enabled")
shell_command = self.server.load_plugin(config, "shell_command") shell_command = self.server.load_component(config, "shell_command")
self.vcgencmd = shell_command.build_shell_command( self.vcgencmd = shell_command.build_shell_command(
"vcgencmd get_throttled") "vcgencmd get_throttled")
self.server.register_notification("proc_stats:cpu_throttled") self.server.register_notification("proc_stats:cpu_throttled")
@ -133,5 +133,5 @@ class ProcStats:
def close(self): def close(self):
self.stat_update_cb.stop() self.stat_update_cb.stop()
def load_plugin(config): def load_component(config):
return ProcStats(config) return ProcStats(config)