Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
wkmyws committed Dec 27, 2023
1 parent cac07f2 commit f423624
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "fan-rs"
authors = ["SuperYY"]
version = "0.1.0"
version = "0.1.1"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
```bash
# Enable HTTP service and bind the port to 0.0.0.0:8567
./fan-rs -l --addr="0.0.0.0:8567"
# Set the refresh interval for terminal information (unit: milliseconds).
./fan-rs -l --addr="0.0.0.0:8567" --interval=2000
```

> This mode allows controlling the fan speed through both terminal keystrokes and HTTP requests.
Expand Down
Binary file modified README/cmd.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified README/server.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/modules/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ pub struct Cli {
#[arg(long,default_value_t=String::from("127.0.0.1:8567"))]
addr: String,

/// set the refresh interval for terminal information
#[arg(long, default_value_t = 1000)]
interval: u64, // 终端信息刷新间隔ms

Expand Down

0 comments on commit f423624

Please sign in to comment.