-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[Bug] 重启后 geo-update-interval 更新时间间隔会重新计算 #1261
Comments
@xiaoQQya 这是预期行为,应用重启计时器也跟着重启 |
嗯嗯,我明白这是预期行为,可否在启动时检查 geodata 文件上次更新时间,如果超过了设置的更新间隔,则立即进行更新。 |
@xiaoQQya 有空加 |
好的,辛苦 |
是不是可以引入cron表达式支持定时更新?这样更灵活,可以指定每天几点更新 |
@xiaoQQya is there any clash api for manual update? Maybe I can use cron with curl. |
|
Wa
Thanks sir |
Verify steps
操作系统
Windows
系统版本
Windows 11 专业版 22631.3527
Mihomo 版本
Mihomo Meta alpha-6d1c62b windows amd64 with go1.22.2 Wed May 8 01:30:29 UTC 2024
Use tags: with_gvisor
配置文件
描述
启用
geo-auto-update
,设置geo-update-interval
为 24h,在 mihomo 内核不关闭的情况下,每 24h 会自动更新 geodata;如果在中途 mihomo 重启过,geodata 更新的时间间隔似乎会重新计算。考虑日常使用场景,设置 geo-update-interval 为 24h,每天早上启动 mihomo,晚上关机关闭 mihomo ,因时间不足 24h 所以不会触发 geodata 自动更新,每天如此会导致 geodata 一直不会更新,只能手动更新。
期望同 provider 一样,在启动时检查上次更新时间,如果超过了设置的更新间隔,则进行更新。
重现方式
geo-auto-update
并设置geo-update-interval
为 1h;日志
The text was updated successfully, but these errors were encountered: