2 Commits

Author SHA1 Message Date
2c3cda6e46 排除linux下无关分区
Some checks failed
Compile / build (x64, windows-latest) (push) Failing after 20s
Compile / build (x64, ubuntu-latest) (push) Failing after 35s
2024-10-03 18:49:28 +08:00
e03c99a9f6 排除linux下无关分区 2024-10-03 17:42:28 +08:00
2 changed files with 10 additions and 2 deletions

View File

@@ -32,7 +32,15 @@ sudo apt install pipx
sudo pipx install server-status
```
若出现环境问题,请从 Actions 下载构建好的二进制文件
若出现环境问题,手动部署
```yaml
git clone https://github.com/snowykami/server-status-client.git
python -m venv .venv
source .venv/bin/activate
pip install pdm
pdm install
python main.py --your-args
```
## 🎉 使用

View File

@@ -232,7 +232,7 @@ class Client:
try:
usage = psutil.disk_usage(part.mountpoint)
if part.mountpoint.startswith(excluded_partition_prefix):
if part.mountpoint.startswith(excluded_partition_prefix) or usage.total == 0:
continue
self.hardware.disks[part.device] = {