diff --git a/data.cpp b/data.cpp index e18747c..c7d493d 100755 --- a/data.cpp +++ b/data.cpp @@ -346,7 +346,7 @@ void get_available_space(std::vector &space) { // figure out free and total space 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; // pass it on