mirror of
https://github.com/snowykami/server-status-client.git
synced 2026-01-25 13:11:54 +00:00
Compare commits
2 Commits
db7aeabe7b
...
2c3cda6e46
| Author | SHA1 | Date | |
|---|---|---|---|
| 2c3cda6e46 | |||
| e03c99a9f6 |
10
README.md
10
README.md
@@ -32,7 +32,15 @@ sudo apt install pipx
|
|||||||
sudo pipx install server-status
|
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
|
||||||
|
```
|
||||||
|
|
||||||
## 🎉 使用
|
## 🎉 使用
|
||||||
|
|
||||||
|
|||||||
@@ -232,7 +232,7 @@ class Client:
|
|||||||
try:
|
try:
|
||||||
usage = psutil.disk_usage(part.mountpoint)
|
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
|
continue
|
||||||
|
|
||||||
self.hardware.disks[part.device] = {
|
self.hardware.disks[part.device] = {
|
||||||
|
|||||||
Reference in New Issue
Block a user