From 933235a84011e219566759b79a175a9ef77b07fb Mon Sep 17 00:00:00 2001 From: Martinez Date: Thu, 26 Feb 2015 15:38:13 +0100 Subject: [PATCH] fixed free space detection on some systems --- data.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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