debug time fixed

This commit is contained in:
asoseil 2017-12-27 18:49:10 +01:00
parent 105437b132
commit 40d1d0d889

View File

@ -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