From 1a7cf2bbabf73ef8f1d290ea9a8a955cb177b77a Mon Sep 17 00:00:00 2001 From: Sam MacPherson Date: Tue, 23 Sep 2014 16:54:26 -0400 Subject: [PATCH] fixed file input sleep timer --- input_file.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/input_file.go b/input_file.go index 3cbf2b1..ad2495c 100644 --- a/input_file.go +++ b/input_file.go @@ -58,8 +58,8 @@ func (i *FileInput) emit() { if lastTime != 0 { time.Sleep(time.Duration(raw.Timestamp - lastTime)) - lastTime = raw.Timestamp } + lastTime = raw.Timestamp i.data <- raw.Request }