mirror of
https://github.com/transmission/transmission.git
synced 2025-12-20 02:18:42 +00:00
fix inactivity typo
This commit is contained in:
@@ -328,7 +328,7 @@ tr_torrentIsSeedRatioDone( tr_torrent * tor )
|
||||
***/
|
||||
|
||||
void
|
||||
tr_torrentSetInactiveMode( tr_torrent * tor, tr_inactvelimit mode )
|
||||
tr_torrentSetInactiveMode( tr_torrent * tor, tr_inactivelimit mode )
|
||||
{
|
||||
assert( tr_isTorrent( tor ) );
|
||||
assert( mode==TR_INACTIVELIMIT_GLOBAL || mode==TR_INACTIVELIMIT_SINGLE || mode==TR_INACTIVELIMIT_UNLIMITED );
|
||||
@@ -341,7 +341,7 @@ tr_torrentSetInactiveMode( tr_torrent * tor, tr_inactvelimit mode )
|
||||
}
|
||||
}
|
||||
|
||||
tr_ratiolimit
|
||||
tr_inactivelimit
|
||||
tr_torrentGetInactiveMode( const tr_torrent * tor )
|
||||
{
|
||||
assert( tr_isTorrent( tor ) );
|
||||
|
||||
@@ -259,7 +259,7 @@ struct tr_torrent
|
||||
tr_ratiolimit ratioLimitMode;
|
||||
|
||||
uint64_t inactiveLimitMinutes;
|
||||
tr_inactvelimit inactiveLimitMode;
|
||||
tr_inactivelimit inactiveLimitMode;
|
||||
|
||||
uint64_t preVerifyTotal;
|
||||
};
|
||||
|
||||
@@ -1178,20 +1178,20 @@ typedef enum
|
||||
TR_INACTIVELIMIT_SINGLE = 1, /* override the global settings, seeding until a certain inactive time */
|
||||
TR_INACTIVELIMIT_UNLIMITED = 2 /* override the global settings, seeding regardless of activity */
|
||||
}
|
||||
tr_inactvelimit;
|
||||
tr_inactivelimit;
|
||||
|
||||
void tr_torrentSetInactiveMode( tr_torrent * tor,
|
||||
tr_inactvelimit mode );
|
||||
void tr_torrentSetInactiveMode( tr_torrent * tor,
|
||||
tr_inactivelimit mode );
|
||||
|
||||
tr_ratiolimit tr_torrentGetInactiveMode( const tr_torrent * tor );
|
||||
tr_inactivelimit tr_torrentGetInactiveMode( const tr_torrent * tor );
|
||||
|
||||
void tr_torrentSetInactiveLimit( tr_torrent * tor,
|
||||
void tr_torrentSetInactiveLimit( tr_torrent * tor,
|
||||
uint64_t inactiveMinutes );
|
||||
|
||||
uint64_t tr_torrentGetInactiveLimit( const tr_torrent * tor );
|
||||
uint64_t tr_torrentGetInactiveLimit( const tr_torrent * tor );
|
||||
|
||||
|
||||
tr_bool tr_torrentGetSeedInactive( const tr_torrent *, uint64_t * inactiveMinutes );
|
||||
tr_bool tr_torrentGetSeedInactive( const tr_torrent *, uint64_t * inactiveMinutes );
|
||||
|
||||
/****
|
||||
***** Peer Limits
|
||||
|
||||
@@ -98,8 +98,8 @@
|
||||
- (BOOL) seedRatioSet;
|
||||
- (CGFloat) progressStopRatio;
|
||||
|
||||
- (tr_inactvelimit) inactiveSetting;
|
||||
- (void) setInactiveSetting: (tr_inactvelimit) setting;
|
||||
- (tr_inactivelimit) inactiveSetting;
|
||||
- (void) setInactiveSetting: (tr_inactivelimit) setting;
|
||||
- (NSUInteger) inactiveLimitMinutes;
|
||||
- (void) setInactiveLimitMinutes: (NSUInteger) limit;
|
||||
- (BOOL) seedInactiveLimitSet;
|
||||
|
||||
@@ -393,12 +393,12 @@ int trashDataFile(const char * filename)
|
||||
return fStat->seedRatioPercentDone;
|
||||
}
|
||||
|
||||
- (tr_inactvelimit) inactiveSetting
|
||||
- (tr_inactivelimit) inactiveSetting
|
||||
{
|
||||
return tr_torrentGetInactiveMode(fHandle);
|
||||
}
|
||||
|
||||
- (void) setInactiveSetting: (tr_inactvelimit) setting
|
||||
- (void) setInactiveSetting: (tr_inactivelimit) setting
|
||||
{
|
||||
tr_torrentSetInactiveMode(fHandle, setting);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user