mirror of
https://github.com/nxshock/simplefileshare.git
synced 2025-04-19 01:01:50 +05:00
Check for old files in constant period
This commit is contained in:
parent
8e764ae9f0
commit
10f177ef90
@ -9,7 +9,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func removeOldFilesThread(path string, olderThan time.Duration) {
|
func removeOldFilesThread(path string, olderThan time.Duration) {
|
||||||
ticker := time.NewTicker(olderThan)
|
ticker := time.NewTicker(time.Hour)
|
||||||
|
|
||||||
for _ = range ticker.C {
|
for _ = range ticker.C {
|
||||||
log.Debugln("Removing old files...")
|
log.Debugln("Removing old files...")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user