mirror of
https://github.com/transmission/transmission.git
synced 2026-05-08 09:39:08 +01:00
(trunk libT) #4295 "'download-dir-free-space' contains garbage" -- fixed by bugmenot patch
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user