From f63f05debdcc37ff126669539c3409add651853a Mon Sep 17 00:00:00 2001 From: JungJun Date: Tue, 19 Jul 2022 09:38:10 +0900 Subject: [PATCH] =?UTF-8?q?rotate=201=EB=B6=84=EC=9C=BC=EB=A1=9C=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- icssvc/icssvc.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/icssvc/icssvc.go b/icssvc/icssvc.go index 46bda21..33a899e 100644 --- a/icssvc/icssvc.go +++ b/icssvc/icssvc.go @@ -173,7 +173,8 @@ func (s IcsService) LogWatcher() *icserror.IcsError { times := mi2 - mi1 rotateTime := math.Abs(float64(times)) - if rotateTime > 4 { // only 5 minute + // if rotateTime > 4 { // only 5 minute + if rotateTime > 1 { // only 5 minute s.config = icsconf.GetIcsConfig() logpath := fmt.Sprintf("%s", s.config.LogConfig.Path) aSpace := icsutil.GetDiskAvailableSpace(logpath)