fixed flag name

This commit is contained in:
Tordarus 2025-01-15 15:22:52 +01:00
parent 45f5c9d06a
commit 0681c6891b
2 changed files with 5 additions and 5 deletions

View File

@ -29,7 +29,7 @@ func InitCache() {
}
go func() {
ticker := time.NewTicker(FlagUpdateHashFileInterval)
ticker := time.NewTicker(FlagUpdateCacheFileInterval)
defer ticker.Stop()
for range ticker.C {
if err := WriteCache(); err != nil {

View File

@ -20,7 +20,7 @@ var ( // flags
FlagSourceDir = envvars.String("SOURCE_PATH", "/video")
FlagTargetDir = envvars.String("TARGET_PATH", "/audio")
FlagCacheFile = envvars.String("CACHE_FILE", "/hashes.bin")
FlagUpdateHashFileInterval = envvars.Duration("UPDATE_CACHE_FILE_INTERVAL", 10*time.Second)
FlagUpdateCacheFileInterval = envvars.Duration("UPDATE_CACHE_FILE_INTERVAL", 10*time.Second)
)
func main() {