MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / UsedSize

Method UsedSize

internal/utils/fs/stat.go:76–81  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

74}
75
76func (this *StatResult) UsedSize() uint64 {
77 if this.rawStat.Bfree <= this.rawStat.Blocks {
78 return (this.rawStat.Blocks - this.rawStat.Bfree) * this.blockSize
79 }
80 return 0
81}

Callers 5

TestStatFunction · 0.80
TestStatCacheFunction · 0.80
TotalDiskSizeMethod · 0.80
checkDiskSpaceMethod · 0.80
updateCacheSpaceMethod · 0.80

Calls

no outgoing calls

Tested by 2

TestStatFunction · 0.64
TestStatCacheFunction · 0.64