small refactoring

This commit is contained in:
Chris Lu 2019-04-10 23:39:53 -07:00
parent cb2061f86a
commit 0e33272f56
2 changed files with 3 additions and 3 deletions

View file

@ -153,7 +153,7 @@ func (vs *VolumeServer) ReadVolumeFileStatus(ctx context.Context, req *volume_se
resp.IdxFileSize = v.IndexFileSize()
resp.DatFileTimestamp = v.LastModifiedTime()
resp.IdxFileTimestamp = v.LastModifiedTime()
resp.FileCount = uint64(v.FileCount())
resp.FileCount = v.FileCount()
return resp, nil
}

View file

@ -94,8 +94,8 @@ func (v *Volume)LastModifiedTime() uint64 {
return v.lastModifiedTime
}
func (v *Volume)FileCount() uint {
return uint(v.nm.FileCount())
func (v *Volume)FileCount() uint64 {
return uint64(v.nm.FileCount())
}
// Close cleanly shuts down this volume