mirror of
https://github.com/nxshock/simplefileshare.git
synced 2025-07-01 00:03:35 +05:00
Check for old files in constant period
This commit is contained in:
parent
8e764ae9f0
commit
10f177ef90
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue