Ticket #4295: a.diff

File a.diff, 520 bytes (added by bugmenot, 10 years ago)

use fragment size

  • libtransmission/platform.c

     
    702702        : -1;
    703703#elif defined(HAVE_STATVFS)
    704704    struct statvfs buf;
    705     return statvfs( path, &buf ) ? -1 : (int64_t)buf.f_bavail * (int64_t)buf.f_bsize;
     705    return statvfs( path, &buf ) ? -1 : (int64_t)buf.f_bavail * (int64_t)buf.f_frsize;
    706706#else
    707707    #warning FIXME: not implemented
    708708    return -1;