-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactoring: Stats to header (Cpu Usage %) #3843
Conversation
CPU load calculation
Reading Stats from DB
I tried to implement your idea. Please merge and build. |
We need to resolve the issue with "$Config{ZM_SERVER_ID}" |
To display Stats in Options->Server
@connortechnology |
See the comments. Remove removed the caching of previous calls and added a sleep. I don't want to sleep if we don't have to. |
Ok, I'll change the code. |
We no longer use sllep() A temporary file is now used to save the previous state. Without the previous state, correct calculation of the load is not possible. CPU load is calculated during the database update interval
@connortechnology |
Without using a temporary file with the previous state it will not work. |
Did I do something wrong? |
At no time did I mention the Server_Stats table. I mean leave it in the in-memory server object. |
@connortechnology I hope you are now satisfied with my code? |
What is my mistake now? :( |
When I find the time, I'll modify it to suit me and merge. I'm actually on vacation right now... but also working and signing up new clients. Work load 400%. |
Sorry, Isaac. |
@connortechnology |
I have merged it, and also reverted the parts I didn't like. ANd fixed the sql for loading of stats in php. |
Perl script enters the calculated CPU loads into DB.
PHP gets data from DB and displays it