fixed free space detection on some systems
This commit is contained in:
parent
1f18d2a5e0
commit
933235a840
1 changed files with 1 additions and 1 deletions
2
data.cpp
2
data.cpp
|
@ -346,7 +346,7 @@ void get_available_space(std::vector<Space> &space) {
|
||||||
|
|
||||||
// figure out free and total space
|
// figure out free and total space
|
||||||
statfs(mountpoint.c_str(), &stats);
|
statfs(mountpoint.c_str(), &stats);
|
||||||
free_space = stats.f_bavail * stats.f_bsize;
|
free_space = stats.f_bfree * stats.f_bsize;
|
||||||
total_space = stats.f_blocks * stats.f_bsize;
|
total_space = stats.f_blocks * stats.f_bsize;
|
||||||
|
|
||||||
// pass it on
|
// pass it on
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue