From 40d1d0d88919560b7213c9b18aff5e0485eb5a8e Mon Sep 17 00:00:00 2001 From: asoseil Date: Wed, 27 Dec 2017 18:49:10 +0100 Subject: [PATCH] debug time fixed --- realize/projects.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/realize/projects.go b/realize/projects.go index 9e612f6..b650ba7 100644 --- a/realize/projects.go +++ b/realize/projects.go @@ -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