|
|
@ -130,6 +130,7 @@ func NewIcsLog(conf *icsconf.LogConfig, level int, output int, path string, disk
|
|
|
|
nowMinS := fmt.Sprintf("%02dm", nowMinRem)
|
|
|
|
nowMinS := fmt.Sprintf("%02dm", nowMinRem)
|
|
|
|
convMinutes, _ := time.ParseDuration(nowMinS)
|
|
|
|
convMinutes, _ := time.ParseDuration(nowMinS)
|
|
|
|
diffMinutes := now.Add(-convMinutes)
|
|
|
|
diffMinutes := now.Add(-convMinutes)
|
|
|
|
|
|
|
|
fmt.Println("diffMinutes ", diffMinutes)
|
|
|
|
|
|
|
|
|
|
|
|
gIcsLog.CurrentDate = diffMinutes
|
|
|
|
gIcsLog.CurrentDate = diffMinutes
|
|
|
|
gIcsLog.DelDay = conf.DelConfig.DelDay
|
|
|
|
gIcsLog.DelDay = conf.DelConfig.DelDay
|
|
|
|