From f6303672a06a555eac428d68c11f7fe40124ef52 Mon Sep 17 00:00:00 2001 From: kunw Date: Thu, 17 Nov 2016 19:01:29 +0800 Subject: [PATCH] Update for precising volume size. --- src/ui/api/systeminfo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/api/systeminfo.go b/src/ui/api/systeminfo.go index f3813f750..154c4bea7 100644 --- a/src/ui/api/systeminfo.go +++ b/src/ui/api/systeminfo.go @@ -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), }, }