(trunk libT) #4295 "'download-dir-free-space' contains garbage" -- fixed by bugmenot patch

This commit is contained in:
Jordan Lee
2011-05-30 18:17:16 +00:00
parent 3f6ffb90c2
commit 0aa163dfe9
+1 -1
View File
@@ -702,7 +702,7 @@ tr_getFreeSpace( const char * path )
: -1;
#elif defined(HAVE_STATVFS)
struct statvfs buf;
return statvfs( path, &buf ) ? -1 : (int64_t)buf.f_bavail * (int64_t)buf.f_bsize;
return statvfs( path, &buf ) ? -1 : (int64_t)buf.f_bavail * (int64_t)buf.f_frsize;
#else
#warning FIXME: not implemented
return -1;