Check for old files in constant period

This commit is contained in:
nxshock 2021-09-22 19:05:28 +05:00
parent 8e764ae9f0
commit 10f177ef90

View File

@ -9,7 +9,7 @@ import (
)
func removeOldFilesThread(path string, olderThan time.Duration) {
ticker := time.NewTicker(olderThan)
ticker := time.NewTicker(time.Hour)
for _ = range ticker.C {
log.Debugln("Removing old files...")