diff options
| author | bingoohuang <bingoo.huang@gmail.com> | 2019-01-17 09:17:19 +0800 |
|---|---|---|
| committer | bingoohuang <bingoo.huang@gmail.com> | 2019-01-17 09:17:19 +0800 |
| commit | ab6be025d76748388ad3eea6fe6ca000db1c2435 (patch) | |
| tree | 1be9b1b5e7f91693f4cabe3ae0d114cb7f7dced6 /weed/filesys/wfs.go | |
| parent | 6ddfaf33cba953b92a5e3383a15bf26ab1845dbc (diff) | |
| download | seaweedfs-ab6be025d76748388ad3eea6fe6ca000db1c2435.tar.xz seaweedfs-ab6be025d76748388ad3eea6fe6ca000db1c2435.zip | |
go fmt and fix some typo
Diffstat (limited to 'weed/filesys/wfs.go')
| -rw-r--r-- | weed/filesys/wfs.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/weed/filesys/wfs.go b/weed/filesys/wfs.go index 3f6202a4f..969514a06 100644 --- a/weed/filesys/wfs.go +++ b/weed/filesys/wfs.go @@ -58,7 +58,7 @@ type statsCache struct { func NewSeaweedFileSystem(option *Option) *WFS { wfs := &WFS{ option: option, - listDirectoryEntriesCache: ccache.New(ccache.Configure().MaxSize(1024*8).ItemsToPrune(100)), + listDirectoryEntriesCache: ccache.New(ccache.Configure().MaxSize(1024 * 8).ItemsToPrune(100)), pathToHandleIndex: make(map[string]int), bufPool: sync.Pool{ New: func() interface{} { @@ -174,11 +174,11 @@ func (wfs *WFS) Statfs(ctx context.Context, req *fuse.StatfsRequest, resp *fuse. resp.Blocks = totalDiskSize / blockSize // Compute the number of used blocks - numblocks := uint64(usedDiskSize / blockSize) + numBlocks := uint64(usedDiskSize / blockSize) // Report the number of free and available blocks for the block size - resp.Bfree = resp.Blocks - numblocks - resp.Bavail = resp.Blocks - numblocks + resp.Bfree = resp.Blocks - numBlocks + resp.Bavail = resp.Blocks - numBlocks resp.Bsize = uint32(blockSize) // Report the total number of possible files in the file system (and those free) |
