Merge branch 'master' into a

This commit is contained in:
eddy-gfx
2022-04-06 18:45:55 -05:00
committed by GitHub
65 changed files with 3144 additions and 1515 deletions

View File

@@ -23,6 +23,9 @@ func TotalSize(chunks []*filer_pb.FileChunk) (size uint64) {
}
func FileSize(entry *filer_pb.Entry) (size uint64) {
if entry == nil || entry.Attributes == nil {
return 0
}
fileSize := entry.Attributes.FileSize
if entry.RemoteEntry != nil {
if entry.RemoteEntry.RemoteMtime > entry.Attributes.Mtime {