mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2026-02-26 16:57:08 +00:00
Improve: change provider file modify time when updated (#1918)
This commit is contained in:
@@ -102,6 +102,7 @@ func (f *fetcher) Update() (interface{}, bool, error) {
|
||||
hash := md5.Sum(buf)
|
||||
if bytes.Equal(f.hash[:], hash[:]) {
|
||||
f.updatedAt = &now
|
||||
os.Chtimes(f.vehicle.Path(), now, now)
|
||||
return nil, true, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user