[web]修复浮点数异常

This commit is contained in:
远野千束 2024-10-05 09:34:11 +08:00
parent ae75e76fb9
commit 2408679ad1
2 changed files with 7 additions and 1 deletions

View File

@ -19,17 +19,20 @@ _✨ 服务器状态 - 服务端/后端 ✨_
### 从二进制文件安装
- 从 [Actions](https://github.com/snowykami/server-status-server/actions) 下载对应平台的二进制文件
- 目前支持`linux` `windows` `darwin` × `amd64` `arm64`
## 🎉 使用
### 配置
- 默认是通过传入环境变量来配置的,你可以通过创建 `.env` 文件来或者直接传入环境变量来配置
- 默认是通过传入环境变量来配置的,你可通过于可执行文件同级目录下创建 `.env` 文件来或者直接传入环境变量来配置
```dotenv
PORT=8080
TOKEN=114514
```
### 运行
- 直接执行二进制文件即可
- 而后访问http://127.0.0.1:8888/ 即可看到效果(默认端口8888)
@ -40,6 +43,7 @@ _✨ 服务器状态 - 服务端/后端 ✨_
### 监控
- 请在需要监控的服务器主机上部署客户端探针 [server-status-client](https://github.com/snowykami/server-status-client)
- 被控端是否支持取决于其平台是否支持Python及其依赖库
## 📝 其他
@ -48,8 +52,10 @@ _✨ 服务器状态 - 服务端/后端 ✨_
- 手动安装请自行配置service通过systemd启动
### 自定义前端
- 前端源码在[server-status-web](https://github.com/snowykami/server-status-web)
- 接口定义请查看源代码的[api/router](./api/router.go)
### 32位系统
- 由于[cloudwego/netpoll Issue #252](https://github.com/cloudwego/netpoll/issues/252), 暂不支持32位系统

Binary file not shown.

Before

Width:  |  Height:  |  Size: 248 KiB

After

Width:  |  Height:  |  Size: 254 KiB