You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-12-12 11:01:17 +03:00
MCOL-2273 Improve disk usage reporting
Use the amount of available space rather than the amount of free space. The two numbers are usually different because the free blocks may be unusable at the time.
This commit is contained in:
@@ -240,7 +240,7 @@ void diskMonitor()
|
|||||||
|
|
||||||
blksize = buf.f_bsize;
|
blksize = buf.f_bsize;
|
||||||
blocks = buf.f_blocks;
|
blocks = buf.f_blocks;
|
||||||
freeblks = buf.f_bfree;
|
freeblks = buf.f_bavail;
|
||||||
|
|
||||||
totalBlocks = blocks * blksize;
|
totalBlocks = blocks * blksize;
|
||||||
free = freeblks * blksize;
|
free = freeblks * blksize;
|
||||||
@@ -359,7 +359,7 @@ void diskMonitor()
|
|||||||
|
|
||||||
blksize = buf.f_bsize;
|
blksize = buf.f_bsize;
|
||||||
blocks = buf.f_blocks;
|
blocks = buf.f_blocks;
|
||||||
freeblks = buf.f_bfree;
|
freeblks = buf.f_bavail;
|
||||||
|
|
||||||
totalBlocks = blocks * blksize;
|
totalBlocks = blocks * blksize;
|
||||||
free = freeblks * blksize;
|
free = freeblks * blksize;
|
||||||
|
|||||||
Reference in New Issue
Block a user