Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GoEdgeLab/EdgeNode
/ TotalSize
Method
TotalSize
internal/utils/fs/stat.go:72–74 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
70
}
71
72
func
(this *StatResult) TotalSize() uint64 {
73
return
this.rawStat.Blocks * this.blockSize
74
}
75
76
func
(this *StatResult) UsedSize() uint64 {
77
if
this.rawStat.Bfree <= this.rawStat.Blocks {
Callers
2
TestStat
Function · 0.45
TestStatCache
Function · 0.45
Calls
no outgoing calls
Tested by
2
TestStat
Function · 0.36
TestStatCache
Function · 0.36