Ignore:
Timestamp:
Jan 4, 2013, 2:13:10 AM (8 years ago)
Author:
jordan
Message:

(libT) #3833: 0001-In-OS-X-disk-quota-s-info-already-in-bytes.patch -- patch by taem

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/platform.c

    r13716 r13754  
    857857      spaceused = (int64_t) dq.dqb_curblocks >> 1;
    858858#elif defined(SYS_DARWIN)
    859       spaceused = (int64_t) dq.dqb_curbytes >> 1;
     859      spaceused = (int64_t) dq.dqb_curbytes;
    860860#elif defined(__UCLIBC__)
    861861      spaceused = (int64_t) btodb(dq.dqb_curblocks);
     
    864864#endif
    865865      freespace = limit - spaceused;
     866#ifdef SYS_DARWIN
     867      return (freespace < 0) ? 0 : freespace;
     868#else
    866869      return (freespace < 0) ? 0 : freespace * 1024;
     870#endif
    867871    }
    868872
Note: See TracChangeset for help on using the changeset viewer.