Update python cpu reporting (#552)

The scrypted web ui looks to be reading from `cpu`:
64f696599c/plugins/core/ui/src/components/plugin/PluginStats.vue (L67)
and is being published on the nodejs side as `cpu`:
227b287f1e/server/src/plugin/plugin-remote-worker.ts (L21)

Might need to change this as well?
cc43273f34/server/src/plugin/plugin-host.ts (L59)
This commit is contained in:
Brett Jia
2023-02-11 21:47:53 -05:00
committed by GitHub
parent 821d64e2b0
commit 4ab8efdc49

View File

@@ -490,7 +490,7 @@ async def async_main(loop: AbstractEventLoop):
heapTotal = 0
stats = {
'type': 'stats',
'cpuUsage': {
'cpu': {
'user': ptime,
'system': 0,
},