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

Function GetLogFileSize

common/log/log.go:373–379  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

371}
372
373func GetLogFileSize() (int64, error) {
374 f, e := Log.logFile.Stat()
375 if e != nil {
376 return 0, e
377 }
378 return f.Size(), nil
379}
380
381func GetMaxLogChangeInterval(maxLogSize int64) int64 {
382 if maxLogSize != 0 {

Callers 1

CheckIfNeedNewFileFunction · 0.85

Calls 1

SizeMethod · 0.45

Tested by

no test coverage detected