Ignore:
Timestamp:
Mar 28, 2009, 5:18:43 PM (13 years ago)
Author:
livings124
Message:

the Mac build works with the new speed limit libT code - still a bit quirky

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Torrent.m

    r8067 r8098  
    395395- (BOOL) usesSpeedLimit: (BOOL) upload
    396396{
    397     return tr_torrentIsUsingSpeedLimit(fHandle, upload ? TR_UP : TR_DOWN);
     397    return tr_torrentUsesSpeedLimit(fHandle, upload ? TR_UP : TR_DOWN);
    398398}
    399399
     
    415415- (BOOL) usesGlobalSpeedLimit
    416416{
    417     const BOOL up = tr_torrentIsUsingGlobalSpeedLimit(fHandle, TR_UP);
    418     const BOOL down = tr_torrentIsUsingGlobalSpeedLimit(fHandle, TR_DOWN);
    419     NSAssert(up == down, @"upload and download global limit settings should have the same value");
    420     return up;
     417    return tr_torrentUsesSessionLimits(fHandle);
    421418}
    422419
    423420- (void) setUseGlobalSpeedLimit: (BOOL) use
    424421{
    425     tr_torrentUseGlobalSpeedLimit(fHandle, TR_UP, use);
    426     tr_torrentUseGlobalSpeedLimit(fHandle, TR_DOWN, use);
     422    tr_torrentUseSessionLimits(fHandle, use);
    427423}
    428424
Note: See TracChangeset for help on using the changeset viewer.