aboutsummaryrefslogtreecommitdiff
path: root/weed/server/filer_grpc_server.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2018-05-24 23:21:12 -0700
committerChris Lu <chris.lu@gmail.com>2018-05-24 23:21:12 -0700
commita01557f4cb98235bbd8d0258ae6f9fcda40f4f9f (patch)
treed26297f7aeb9ee9bc975f6b4e4a9a3704c034d56 /weed/server/filer_grpc_server.go
parentc11d84f31414997ac43c3c1e638fe762318110d8 (diff)
downloadseaweedfs-a01557f4cb98235bbd8d0258ae6f9fcda40f4f9f.tar.xz
seaweedfs-a01557f4cb98235bbd8d0258ae6f9fcda40f4f9f.zip
adjust filer web page
Diffstat (limited to 'weed/server/filer_grpc_server.go')
-rw-r--r--weed/server/filer_grpc_server.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/server/filer_grpc_server.go b/weed/server/filer_grpc_server.go
index 7fba6a7ce..050785be2 100644
--- a/weed/server/filer_grpc_server.go
+++ b/weed/server/filer_grpc_server.go
@@ -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