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
Describe the bug
[A clear and concise description of what the bug is.]
When capturing the idle rate of the CPU, there is an abnormal point. Its value is a negative value, and the value is very large, which is 27960219.
The code to calculate the CPU idle rate is as follows:
To Reproduce
This problem has not been reproduced by restarting the system or modifying the system time. It has only been encountered once so far. I don’t know the cause of this phenomenon and there is no way to reproduce it.
Expected behavior
[A clear and concise description of what you expected to happen.]
Environment (please complete the following information):
[root@localhost ~]# uname -a
Linux localhost 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
[root@localhost ~]# cat /etc/os-release
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"
Additional context
go version: 1.19
gopsutil version: github.com/shirou/gopsutil/v3 v3.24.4
The text was updated successfully, but these errors were encountered:
Describe the bug
[A clear and concise description of what the bug is.]
When capturing the idle rate of the CPU, there is an abnormal point. Its value is a negative value, and the value is very large, which is 27960219.
The code to calculate the CPU idle rate is as follows:
To Reproduce
This problem has not been reproduced by restarting the system or modifying the system time. It has only been encountered once so far. I don’t know the cause of this phenomenon and there is no way to reproduce it.
Expected behavior
[A clear and concise description of what you expected to happen.]
Environment (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: