Skip to content

Commit

Permalink
更新
Browse files Browse the repository at this point in the history
  • Loading branch information
xishang0128 committed Apr 7, 2024
1 parent bdfd3be commit 57b224e
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
4 changes: 3 additions & 1 deletion docs/config/general.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ ipv6: true

Controls the interval at which Clash sends out TCP Keep Alive packets to reduce temporary measures for mobile device power consumption.

Only integer format is supported.

```{.yaml linenums="1"}
keep-alive-interval: 30
```
Expand Down Expand Up @@ -254,7 +256,7 @@ geodata-loader: memconservative
geo-auto-update: false
```

Update interval, in hours.
Update interval, in hours, only supports integer format.

```{.yaml linenums="1"}
geo-update-interval: 24
Expand Down
4 changes: 3 additions & 1 deletion docs/config/general.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ ipv6: true

控制 Clash 发出 TCP Keep Alive 包的间隔,减少移动设备[耗电问题](https://github.com/vernesong/OpenClash/issues/2614)的临时措施。

仅支持整数格式

```{.yaml linenums="1"}
keep-alive-interval: 30
```
Expand Down Expand Up @@ -257,7 +259,7 @@ geodata-loader: memconservative
geo-auto-update: false
```

更新间隔,单位小时
更新间隔,单位小时,仅支持整数格式

```{.yaml linenums="1"}
geo-update-interval: 24
Expand Down
14 changes: 14 additions & 0 deletions docs/config/syntax.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,3 +171,17 @@ fake-ip-filter:
- "+.xboxlive.com"
- localhost.ptlogin2.qq.com
```

## Time Format

Mihome supports two time formats: integer and duration.

=== "Integer format"
```{.yaml linenums="1"}
interval: 3600
```

=== "Duration format"
```{.yaml linenums="1"}
interval: 1h
```

0 comments on commit 57b224e

Please sign in to comment.