Fixed cpu usage at 101%#6
Open
SondreUM wants to merge 2 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes in
get_cpu_message()Hass.io uses different row name for cpu usage, additionally uses percentage instead of fraction.
From Home Assistant:
Ubuntu example:
$ top top - 00:32:20 up 3 days, 55 min, 6 users, load average: 0.53, 0.38, 0.36 Tasks: 393 total, 1 running, 391 sleeping, 0 stopped, 1 zombie %Cpu(s): 0.5 us, 1.5 sy, 1.0 ni, 97.1 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st MiB Mem : 39023.1 total, 26581.8 free, 7949.3 used, 4492.1 buff/cache MiB Swap: 16384.0 total, 16384.0 free, 0.0 used. 28497.3 avail Mem PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 1057 root 32 12 1876104 46452 32000 S 6.2 0.1 1:23.63 containerdTestet on Raspberry pi 4B with Home Assistant: