change wait after last write event to 1s
This commit is contained in:
parent
f7d737ae54
commit
7c1cd3288d
|
@ -187,8 +187,8 @@ func main() {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
log.Println("error:", err)
|
log.Println("error:", err)
|
||||||
case <-time.After(100 * time.Millisecond):
|
case <-time.After(1 * time.Second):
|
||||||
// 100ms after last file system event: munch data
|
// 1s after last file system event: munch data
|
||||||
if len(created) > 0 {
|
if len(created) > 0 {
|
||||||
tmpcreated := created
|
tmpcreated := created
|
||||||
created = []string{}
|
created = []string{}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user