Просмотр исходного кода

【文档】更新参数默认值

PJ568 1 год назад
Родитель
Сommit
df1fad4c13
4 измененных файлов с 8 добавлено и 8 удалено
  1. 1 1
      Cargo.lock
  2. 1 1
      Cargo.toml
  3. 3 3
      README.en.md
  4. 3 3
      README.md

+ 1 - 1
Cargo.lock

@@ -942,7 +942,7 @@ checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f"
 
 [[package]]
 name = "swb-sys-monitor"
-version = "0.5.0"
+version = "0.5.1"
 dependencies = [
  "anyhow",
  "clap",

+ 1 - 1
Cargo.toml

@@ -1,6 +1,6 @@
 [package]
 name = "swb-sys-monitor"
-version = "0.5.0"
+version = "0.5.1"
 authors = ["PJ568 <[email protected]>"]
 edition = "2024"
 description = "为嵌入式设备高并发监控场景设计的极简网页资源占用显示系统"

+ 3 - 3
README.en.md

@@ -2,7 +2,7 @@
 
 > English | [简体中文](README.md)
 
-A minimal resource usage monitoring system designed specifically for embedded device monitoring scenarios. Supports 200+ high-concurrency client connections.
+A minimal resource usage monitoring system designed specifically for embedded device high-concurrency monitoring scenarios. Supports 200+ high-concurrency client connections with lock-free algorithms for high performance.
 
 - [Preview image](assets/preview.png)
 
@@ -43,7 +43,7 @@ cargo run -- --help
 ### Usage
 
 ```bash
-# Start with default configuration (listen on 0.0.0.0:8080, cache TTL 10 seconds)
+# Start with default configuration (listen on [::]:8080, cache TTL 10 seconds)
 ./target/release/swb-sys-monitor
 
 # Custom configuration
@@ -76,7 +76,7 @@ curl http://localhost:8080/health
 
 | Parameter     | Short Parameter | Default   | Description                                 |
 | ------------- | --------------- | --------- | ------------------------------------------- |
-| `--address`   | `-a`            | `0.0.0.0` | Server binding address                      |
+| `--address`   | `-a`            | `::`      | Server binding address (supports IPv4 and IPv6) |
 | `--port`      | `-p`            | `8080`    | Server port                                 |
 | `--ttl`       | `-t`            | `10`      | Cache TTL in seconds                        |
 | `--log-level` | `-l`            | `info`    | Log level (trace, debug, info, warn, error) |

+ 3 - 3
README.md

@@ -2,7 +2,7 @@
 
 > [English](README.en.md) | 简体中文
 
-一个极简的资源占用显示系统,专为嵌入式设备监控场景设计。支持 200+ 高并发客户端访问。
+一个极简的资源占用显示系统,专为嵌入式设备高并发监控场景设计。支持 200+ 高并发客户端访问,采用无锁算法实现高性能。
 
 - [预览图](assets/preview.png)
 
@@ -43,7 +43,7 @@ cargo run -- --help
 ### 使用
 
 ```bash
-# 使用默认配置启动(监听 0.0.0.0:8080,缓存 TTL 10 秒)
+# 使用默认配置启动(监听 [::]:8080,缓存 TTL 10 秒)
 ./target/release/swb-sys-monitor
 
 # 自定义配置
@@ -76,7 +76,7 @@ curl http://localhost:8080/health
 
 | 参数          | 短参数 | 默认值    | 描述                                       |
 | ------------- | ------ | --------- | ------------------------------------------ |
-| `--address`   | `-a`   | `0.0.0.0` | 服务器绑定地址                             |
+| `--address`   | `-a`   | `::`      | 服务器绑定地址(支持 IPv4 和 IPv6)        |
 | `--port`      | `-p`   | `8080`    | 服务器端口                                 |
 | `--ttl`       | `-t`   | `10`      | 缓存 TTL 秒数                              |
 | `--log-level` | `-l`   | `info`    | 日志级别 (trace, debug, info, warn, error) |