From 1190e5dbedd2a9b9a54195a01f9da406ea2077b2 Mon Sep 17 00:00:00 2001 From: alessio Date: Mon, 24 Apr 2017 11:52:22 +0200 Subject: [PATCH] last change fixed --- watcher/watcher.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/watcher/watcher.go b/watcher/watcher.go index 1468d25..e7425c1 100644 --- a/watcher/watcher.go +++ b/watcher/watcher.go @@ -148,7 +148,6 @@ func (p *Project) watchByNotify() { close(channel) channel = make(chan bool) } - p.LastChangedOn = time.Now().Truncate(time.Second) // repeat the initial cycle msg = fmt.Sprintln(p.pname(p.Name, 4), ":", style.Magenta.Bold(strings.ToUpper(ext[1:])+" changed"), style.Magenta.Bold(file)) out = BufferOut{Time: time.Now(), Text: strings.ToUpper(ext[1:]) + " changed " + file} @@ -160,6 +159,7 @@ func (p *Project) watchByNotify() { p.tool(path, p.tools.Test) p.tool(path, p.tools.Generate) go p.routines(channel, &wr) + p.LastChangedOn = time.Now().Truncate(time.Second) } } }