debug time fixed
This commit is contained in:
parent
105437b132
commit
40d1d0d889
@ -285,7 +285,7 @@ L:
|
||||
select {
|
||||
case event := <-p.watcher.Events():
|
||||
if p.parent.Settings.Debug {
|
||||
log.Println("Event:", event, "File:", event.Name, "LastFile:", p.lastFile, "Time:", time.Second, "LastTime:", p.lastTime)
|
||||
log.Println("Event:", event, "File:", event.Name, "LastFile:", p.lastFile, "Time:", time.Now(), "LastTime:", p.lastTime)
|
||||
}
|
||||
if time.Now().Truncate(time.Second).After(p.lastTime) || event.Name != p.lastFile {
|
||||
// event time
|
||||
|
Loading…
Reference in New Issue
Block a user