Merge pull request #1116 from wknet123/dev-precise-volume-size

Update for precising volume size.
LGTM
This commit is contained in:
yhua123 2016-11-18 11:11:02 +08:00 committed by GitHub
commit fba88b79ac

View File

@ -59,7 +59,7 @@ func (sia *SystemInfoAPI) GetVolumeInfo() {
systemInfo := SystemInfo{
HarborStorage: Storage{
Total: stat.Blocks * uint64(stat.Bsize),
Free: stat.Bfree * uint64(stat.Bsize),
Free: stat.Bavail * uint64(stat.Bsize),
},
}