Skip to content
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

linux系统下内存检测报错 #108

Open
HmsyCN opened this issue Feb 26, 2024 · 2 comments
Open

linux系统下内存检测报错 #108

HmsyCN opened this issue Feb 26, 2024 · 2 comments

Comments

@HmsyCN
Copy link

HmsyCN commented Feb 26, 2024

2024/02/26 18:46:43 Failed to parse memory usage: strconv.ParseFloat: parsing "": invalid syntax
[GIN] 2024/02/26 - 18:46:46 | 200 | 1.00067453s | 192.168.110.1 | GET "/api/status"
[GIN] 2024/02/26 - 18:46:49 | 200 | 1.001000779s | 192.168.110.1 | GET "/api/status"
[GIN] 2024/02/26 - 18:46:52 | 200 | 1.001218995s | 192.168.110.1 | GET "/api/status"
[GIN] 2024/02/26 - 18:46:55 | 200 | 1.00096608s | 192.168.110.1 | GET "/api/status"
[GIN] 2024/02/26 - 18:46:58 | 200 | 1.001017195s | 192.168.110.1 | GET "/api/status"
[GIN] 2024/02/26 - 18:47:01 | 200 | 1.000957253s | 192.168.110.1 | GET "/api/status"
[GIN] 2024/02/26 - 18:47:04 | 200 | 1.001429092s | 192.168.110.1 | GET "/api/status"
[GIN] 2024/02/26 - 18:47:07 | 200 | 1.000997951s | 192.168.110.1 | GET "/api/status"
[GIN] 2024/02/26 - 18:47:10 | 200 | 1.0014533s | 192.168.110.1 | GET "/api/status"
[GIN] 2024/02/26 - 18:47:13 | 200 | 1.001820712s | 192.168.110.1 | GET "/api/status"
当前正常运行中~
2024/02/26 18:47:13 Failed to parse memory usage: strconv.ParseFloat: parsing "": invalid syntax
[GIN] 2024/02/26 - 18:47:16 | 200 | 1.002042418s | 192.168.110.1 | GET "/api/status"

系统是Ubuntu 22.04.3 LTS

@fatevase
Copy link
Contributor

fatevase commented Mar 4, 2024

可能是系统语言的问题,可以试下这个命令:free | awk 'NR==2{print $3/$2 * 100.0}',在终端里尝试下,正常的话我就提一下pr

fatevase added a commit to fatevase/palworld-go that referenced this issue Mar 4, 2024
@HmsyCN
Copy link
Author

HmsyCN commented Mar 4, 2024

可能是系统语言的问题,可以试下这个命令:free | awk 'NR==2{print $3/$2 * 100.0}',在终端里尝试下,正常的话我就提一下pr

这个是正常的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants