Update for precising volume size.

This commit is contained in:
kunw 2016-11-17 19:01:29 +08:00
parent fb3f001a47
commit f6303672a0

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),
},
}