You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use "Monitor", I found that the value of "CPU Usage" of the program does not change, but the CPU usage of the program has been changing dynamically by top or htop. The system "CPU" is also changing dynamically.
After reading the source code, I found that this value is the average value since the program started, and does not reflect the current load of the program in real time. I hope to improve it.
Thanks for opening your first issue here! 🎉 Be sure to follow the issue template! If you need help or want to chat with us, join us on Discord https://gofiber.io/discord
nyufeng
changed the title
🐛 [Bug]: Middleware Monitor "PID.CPU" is a "static value".
🐛 [Bug]: Middleware Monitor "CPU Usage" is a "static value".
Apr 23, 2024
Bug Description
When I use "Monitor", I found that the value of "CPU Usage" of the program does not change, but the CPU usage of the program has been changing dynamically by
top
orhtop
. The system "CPU" is also changing dynamically.After reading the source code, I found that this value is the average value since the program started, and does not reflect the current load of the program in real time. I hope to improve it.
How to Reproduce
Expected Behavior
Dynamically changing like
top
.Fiber Version
v2.52.4
Code Snippet (optional)
No response
Checklist:
The text was updated successfully, but these errors were encountered: