From b0b697cba6780b0e6182659c71dcaf6f2b220d71 Mon Sep 17 00:00:00 2001 From: Sean Lewis Date: Wed, 4 Jan 2017 14:58:36 -0700 Subject: [PATCH 1/6] flush the output buffer when it should be flushed fixes #409 --- output_file.go | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/output_file.go b/output_file.go index 1ac00dc..5804214 100644 --- a/output_file.go +++ b/output_file.go @@ -36,15 +36,15 @@ type FileOutputConfig struct { // FileOutput output plugin type FileOutput struct { - mu sync.Mutex - pathTemplate string - currentName string - file *os.File - queueLength int - chunkSize int - writer io.Writer - requestPerFile bool - currentID string + mu sync.Mutex + pathTemplate string + currentName string + file *os.File + queueLength int + chunkSize int + writer io.Writer + requestPerFile bool + currentID string config *FileOutputConfig } @@ -62,8 +62,9 @@ func NewFileOutput(pathTemplate string, config *FileOutputConfig) *FileOutput { go func() { for { - time.Sleep(time.Second) + time.Sleep(config.flushInterval) o.updateName() + o.flush() } }() From ea8d3f7299fdd7ab25f703404e3a6b7aa42e496a Mon Sep 17 00:00:00 2001 From: Leonid Bugaev Date: Thu, 5 Jan 2017 20:21:20 +0300 Subject: [PATCH 2/6] Set theme jekyll-theme-cayman --- docs/_config.yml | 1 + 1 file changed, 1 insertion(+) create mode 100644 docs/_config.yml diff --git a/docs/_config.yml b/docs/_config.yml new file mode 100644 index 0000000..c419263 --- /dev/null +++ b/docs/_config.yml @@ -0,0 +1 @@ +theme: jekyll-theme-cayman \ No newline at end of file From 17c1abfc5e5cf69979da0ffaba617080b7e36a69 Mon Sep 17 00:00:00 2001 From: Leonid Bugaev Date: Thu, 5 Jan 2017 20:25:09 +0300 Subject: [PATCH 3/6] Create CNAME --- docs/CNAME | 1 + 1 file changed, 1 insertion(+) create mode 100644 docs/CNAME diff --git a/docs/CNAME b/docs/CNAME new file mode 100644 index 0000000..d8d891f --- /dev/null +++ b/docs/CNAME @@ -0,0 +1 @@ +docs.goreplay.org \ No newline at end of file From a519c09770b1ea0c3f6b0ad04cf99b6f47af73c6 Mon Sep 17 00:00:00 2001 From: Leonid Bugaev Date: Thu, 5 Jan 2017 20:28:45 +0300 Subject: [PATCH 4/6] Set theme jekyll-theme-slate --- docs/_config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/_config.yml b/docs/_config.yml index c419263..c741881 100644 --- a/docs/_config.yml +++ b/docs/_config.yml @@ -1 +1 @@ -theme: jekyll-theme-cayman \ No newline at end of file +theme: jekyll-theme-slate \ No newline at end of file From e5935a001de74c4800b635948b1f1c865ad2cdcb Mon Sep 17 00:00:00 2001 From: Leonid Bugaev Date: Thu, 5 Jan 2017 20:31:56 +0300 Subject: [PATCH 5/6] Set theme jekyll-theme-cayman --- docs/_config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/_config.yml b/docs/_config.yml index c741881..c419263 100644 --- a/docs/_config.yml +++ b/docs/_config.yml @@ -1 +1 @@ -theme: jekyll-theme-slate \ No newline at end of file +theme: jekyll-theme-cayman \ No newline at end of file From 8421ddb6ffc23d2ba8299e6af07baf401d1981f7 Mon Sep 17 00:00:00 2001 From: Leonid Bugaev Date: Thu, 5 Jan 2017 20:35:21 +0300 Subject: [PATCH 6/6] Rename Home.md to index.md --- docs/{Home.md => index.md} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename docs/{Home.md => index.md} (95%) diff --git a/docs/Home.md b/docs/index.md similarity index 95% rename from docs/Home.md rename to docs/index.md index 88a7bc9..1539924 100644 --- a/docs/Home.md +++ b/docs/index.md @@ -26,4 +26,4 @@ Read for more info: * [[Commercial collaboration]] -Next: [Getting Started](Getting-Started) \ No newline at end of file +Next: [Getting Started](Getting-Started)