From 0aa163dfe9593fc27458fe12772e1c1ee014ad02 Mon Sep 17 00:00:00 2001 From: Jordan Lee Date: Mon, 30 May 2011 18:17:16 +0000 Subject: [PATCH] (trunk libT) #4295 "'download-dir-free-space' contains garbage" -- fixed by bugmenot patch --- libtransmission/platform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libtransmission/platform.c b/libtransmission/platform.c index 4f914ce6f..10048c5b9 100644 --- a/libtransmission/platform.c +++ b/libtransmission/platform.c @@ -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;