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

Method TotalDiskSize

internal/caches/storage_file.go:976–982  ·  view source on GitHub ↗

TotalDiskSize 消耗的磁盘尺寸

()

Source from the content-addressed store, hash-verified

974
975// TotalDiskSize 消耗的磁盘尺寸
976func (this *FileStorage) TotalDiskSize() int64 {
977 stat, err := fsutils.StatDeviceCache(this.options.Dir)
978 if err == nil {
979 return int64(stat.UsedSize())
980 }
981 return 0
982}
983
984// TotalMemorySize 内存尺寸
985func (this *FileStorage) TotalMemorySize() int64 {

Callers 3

InitMethod · 0.95
openWriterMethod · 0.95
purgeLoopMethod · 0.95

Calls 1

UsedSizeMethod · 0.80

Tested by

no test coverage detected