-
Notifications
You must be signed in to change notification settings - Fork 0
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
ProcessCPUUsage
field values doesn't mean anything
#1
Comments
Extract from the docs for the upstream function
This is what I do: gmsv_serverstat/src/sysinfo.rs Line 105 in 4b42cde
I believe this is sound. Can you check if you can reproduce this on Windows? |
On Windows (and on Windows Server with a dedicated server), it seems these values are perfectly normal.
But sometimes the |
@FlorianLeChat Can you test with v0.2.4? |
I still get the problem unfortunately. The server is a VPS with 1 vCore and running CentOS 8. On Windows (and Windows Server), everything works perfectly. |
@FlorianLeChat Looks like |
The problem is still there, unfortunately.
(Always under CentOS 8) |
Is the issue isolated to only CentOS? Do you know if it happens on other distros? |
This is what I also said to myself when I wrote my answer just before, I have a feeling that CentOS might be the problem. I'm very tempted to install Debian and/or Ubuntu Server on a virtual machine tomorrow to test that. |
If we can only reproduce this on CentOS, I can let the maintainer of sysinfo know and he can implement a fix. |
This issue is really confusing 😕 For more information, the tests I did today were done under VMWare 16 with the latest OS images and I installed a fresh new Garry's Mod server using LinuxGSM. |
Ok, mine's under WSL. I doubt LinuxGSM could be doing that. |
Recently, I switched from the old version of this module to the new one and I noticed that the
ProcessCPUUsage
field was giving completely ununderstandable values and didn't seem to make sense compared to the others.For example, here is the result I can get (it happens to me all the time and is not exceptional):
The same thing happens with the asynchronous function (but sometimes it returns
0
without any reason).For information, my server is on a dedicated machine hosted by a game provider (so I don't have control of the machine to check the stats). AFAIK, the server is running under Debian 10 64-bit.
And here is the script I use to get the information from the module.
The text was updated successfully, but these errors were encountered: