clash icon indicating copy to clipboard operation
clash copied to clipboard

[Bug] providers更新的定时器逻辑错误

Open lhbdhr opened this issue 2 years ago • 0 comments

Verify steps

  • [X] 如果你可以自己 debug 并解决的话,提交 PR 吧 Is this something you can debug and fix? Send a pull request! Bug fixes and documentation fixes are welcome.
  • [X] 我已经在 Issue Tracker 中找过我要提出的问题 I have searched on the issue tracker for a related issue.
  • [X] 我已经使用 dev 分支版本测试过,问题依旧存在 I have tested using the dev branch, and the issue still exists.
  • [X] 我已经仔细看过 Documentation 并无法自行解决问题 I have read the documentation and was unable to solve the issue.
  • [X] 这是 Clash 核心的问题,并非我所使用的 Clash 衍生版本(如 OpenClash、KoolClash 等)的特定问题 This is an issue of the Clash core per se, not to the derivatives of Clash, like OpenClash or KoolClash.

Clash version

1.11.8

What OS are you seeing the problem on?

Windows

Clash config

proxy:
    type: http
    behavior: domain
    url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/proxy.txt"
    path: ./ruleset/proxy.yaml
    interval: 86400

direct:
    type: http
    behavior: domain
    url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/direct.txt"
    path: ./ruleset/direct.yaml
    interval: 86400


### Clash log

```shell
NULL

Description

使用clash for windows 时发现rule-providers不会自动更新, 尝试把时间改成600就会更新。 86400不更新是因为从软件启动开始计时的吧? 这里的定时器逻辑写错了吧? 应该对比文件修改时间设定的更新时间的时间戳

lhbdhr avatar Nov 21 '22 15:11 lhbdhr