From a8fcf45624613ba0a60ca7640363e0fd074fbaef Mon Sep 17 00:00:00 2001 From: Jae Kwon Date: Thu, 10 May 2018 20:58:28 -0700 Subject: [PATCH] Change defaults to 100M and 10G respectively --- autofile/cmd/logjack.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autofile/cmd/logjack.go b/autofile/cmd/logjack.go index d475397bb..f2739a7e5 100644 --- a/autofile/cmd/logjack.go +++ b/autofile/cmd/logjack.go @@ -21,8 +21,8 @@ func parseFlags() (headPath string, chopSize int64, limitSize int64, version boo var flagSet = flag.NewFlagSet(os.Args[0], flag.ExitOnError) var chopSizeStr, limitSizeStr string flagSet.StringVar(&headPath, "head", "logjack.out", "Destination (head) file.") - flagSet.StringVar(&chopSizeStr, "chop", "1M", "Move file if greater than this") - flagSet.StringVar(&limitSizeStr, "limit", "1G", "Only keep this much (for each specified file). Remove old files.") + flagSet.StringVar(&chopSizeStr, "chop", "100M", "Move file if greater than this") + flagSet.StringVar(&limitSizeStr, "limit", "10G", "Only keep this much (for each specified file). Remove old files.") flagSet.BoolVar(&version, "version", false, "Version") flagSet.Parse(os.Args[1:]) chopSize = parseBytesize(chopSizeStr)