Merge pull request #5250 from taosdata/fix/TD-3038

[TD-3038]<fix>: fix incorrect disk free size calculation
This commit is contained in:
Shengliang Guan 2021-02-23 17:12:07 +08:00 committed by GitHub
commit 402b3afe38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ int tfsUpdateDiskInfo(SDisk *pDisk) {
}
pDisk->dmeta.size = diskSize.tsize;
pDisk->dmeta.free = diskSize.tsize - diskSize.avail;
pDisk->dmeta.free = diskSize.avail;
return code;
}