TotalDiskSize 消耗的磁盘尺寸
()
| 974 | |
| 975 | // TotalDiskSize 消耗的磁盘尺寸 |
| 976 | func (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 内存尺寸 |
| 985 | func (this *FileStorage) TotalMemorySize() int64 { |
no test coverage detected