From 4ab8efdc49b0a258d21ff3012398f45052c16f9e Mon Sep 17 00:00:00 2001 From: Brett Jia Date: Sat, 11 Feb 2023 21:47:53 -0500 Subject: [PATCH] Update python cpu reporting (#552) The scrypted web ui looks to be reading from `cpu`: https://github.com/koush/scrypted/blob/64f696599c5bd09070e7716976f05404d635d6cf/plugins/core/ui/src/components/plugin/PluginStats.vue#L67 and is being published on the nodejs side as `cpu`: https://github.com/koush/scrypted/blob/227b287f1ee19f354a9174b8aef8bf475fe42efe/server/src/plugin/plugin-remote-worker.ts#L21 Might need to change this as well? https://github.com/koush/scrypted/blob/cc43273f3417000ebe05fc22de75ae9faeddc07b/server/src/plugin/plugin-host.ts#L59 --- server/python/plugin-remote.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/python/plugin-remote.py b/server/python/plugin-remote.py index dcdd7a368..07e607297 100644 --- a/server/python/plugin-remote.py +++ b/server/python/plugin-remote.py @@ -490,7 +490,7 @@ async def async_main(loop: AbstractEventLoop): heapTotal = 0 stats = { 'type': 'stats', - 'cpuUsage': { + 'cpu': { 'user': ptime, 'system': 0, },