adjust filer web page

This commit is contained in:
Chris Lu
2018-05-24 23:21:12 -07:00
parent c11d84f314
commit a01557f4cb
3 changed files with 30 additions and 6 deletions

View File

@@ -46,7 +46,7 @@ func (fs *FilerServer) ListEntries(ctx context.Context, req *filer_pb.ListEntrie
IsDirectory: entry.IsDirectory(),
Chunks: entry.Chunks,
Attributes: &filer_pb.FuseAttributes{
FileSize: filer2.TotalSize(entry.Chunks),
FileSize: entry.Size(),
Mtime: entry.Mtime.Unix(),
Gid: entry.Gid,
Uid: entry.Uid,
@@ -73,7 +73,7 @@ func (fs *FilerServer) GetEntryAttributes(ctx context.Context, req *filer_pb.Get
return nil, fmt.Errorf("file %s not found", fullpath)
}
attributes.FileSize = filer2.TotalSize(entry.Chunks)
attributes.FileSize = entry.Size()
attributes.FileMode = uint32(entry.Mode)
attributes.Uid = entry.Uid
attributes.Gid = entry.Gid