Now, it can display some information on the Home page when CPUs usage or memory usage is too high.
I putted those function in util.c
I encountered a strange issue:
Even when multiple CPUs were under high load, the output looked like:
CPU11
CPU11
CPU11
Eventually, I found the problem:
→ I used the wrong index when writing into the error array, causing repeated overwrites.
I also test this project using stress and stress-ng.
Log in to leave a comment