New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
馃悰 [Bug]: Middleware Monitor "CPU Usage" is a "static value". #2978
Labels
Comments
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
9 tasks
9 tasks
If you're wondering the same thing, here's how to fix it |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: