From 0eb3dcede55433facbeab23e753d3ab991b5e33b Mon Sep 17 00:00:00 2001 From: Eiichiro Watanabe Date: Mon, 12 Nov 2018 17:12:04 +0900 Subject: Fix intervals for MRT --- pkg/server/mrt.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'pkg/server/mrt.go') diff --git a/pkg/server/mrt.go b/pkg/server/mrt.go index b4fe30b5..773f0ea5 100644 --- a/pkg/server/mrt.go +++ b/pkg/server/mrt.go @@ -282,15 +282,15 @@ func (m *mrtWriter) loop() error { } } -func mrtFileOpen(filename string, interval uint64) (*os.File, error) { +func mrtFileOpen(filename string, rInterval uint64) (*os.File, error) { realname := filename - if interval != 0 { + if rInterval != 0 { realname = time.Now().Format(filename) } log.WithFields(log.Fields{ - "Topic": "mrt", - "Filename": realname, - "Dump Interval": interval, + "Topic": "mrt", + "Filename": realname, + "RotationInterval": rInterval, }).Debug("Setting new MRT destination file") i := len(realname) -- cgit v1.2.3