mirror of
https://github.com/WJQSERVER-STUDIO/ghproxy.git
synced 2026-02-03 08:11:11 +08:00
24w19a
This commit is contained in:
parent
d7949f625a
commit
c0af779642
9 changed files with 37 additions and 20 deletions
|
|
@ -96,7 +96,7 @@ func Close() {
|
|||
}
|
||||
|
||||
func monitorLogSize(logFilePath string, maxLogsize int) {
|
||||
var maxLogsizeBytes int64 = int64(maxLogsize) * 1024 * 1024 // 最大日志文件大小,单位为MB
|
||||
var maxLogsizeBytes int64 = int64(maxLogsize) * 1024 * 1024
|
||||
for {
|
||||
time.Sleep(120 * time.Minute) // 每120分钟检查一次日志文件大小
|
||||
logFileMutex.Lock()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue