MCPcopy Create free account
hub / github.com/DNAProject/DNA / GetMaxLogChangeInterval

Function GetMaxLogChangeInterval

common/log/log.go:381–387  ·  view source on GitHub ↗
(maxLogSize int64)

Source from the content-addressed store, hash-verified

379}
380
381func GetMaxLogChangeInterval(maxLogSize int64) int64 {
382 if maxLogSize != 0 {
383 return (maxLogSize * BYTE_TO_MB)
384 } else {
385 return (DEFAULT_MAX_LOG_SIZE * BYTE_TO_MB)
386 }
387}
388
389func CheckIfNeedNewFile() bool {
390 logFileSize, err := GetLogFileSize()

Callers 1

CheckIfNeedNewFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected