From 821b0df947b2fad1b350556465fe238ed45f1703 Mon Sep 17 00:00:00 2001 From: Sean Thomas Canavan Date: Sun, 18 Dec 2016 22:38:20 -0600 Subject: [PATCH] fixed an issue where profiler printed its debug status after executing the loader process. this resolves issue #23 --- src/github.com/seantcanavan/loader/loader.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/github.com/seantcanavan/loader/loader.go b/src/github.com/seantcanavan/loader/loader.go index 941368a..5e87c2a 100644 --- a/src/github.com/seantcanavan/loader/loader.go +++ b/src/github.com/seantcanavan/loader/loader.go @@ -122,10 +122,10 @@ func (ldr *Loader) StartAsynchronous() []LoaderProcess { defer waitGroup.Done() - cmd := exec.Command(currentProcess.Command, currentProcess.Arguments...) - logger.Lgr.LogMessage("Asynchronously executing LoaderProcess: %+v", currentProcess) + cmd := exec.Command(currentProcess.Command, currentProcess.Arguments...) + currentProcess.Start = time.Now().Unix() output, err := cmd.CombinedOutput() currentProcess.End = time.Now().Unix() @@ -165,10 +165,10 @@ func (ldr *Loader) StartSynchronous() []LoaderProcess { for _, currentProcess := range ldr.Processes { - cmd := exec.Command(currentProcess.Command, currentProcess.Arguments...) - logger.Lgr.LogMessage("Synchronously executing LoaderProcess: %+v", currentProcess) + cmd := exec.Command(currentProcess.Command, currentProcess.Arguments...) + currentProcess.Start = time.Now().Unix() output, err := cmd.CombinedOutput() currentProcess.End = time.Now().Unix()