fix inactivity typo

This commit is contained in:
Mitchell Livingston
2010-07-23 11:02:57 +00:00
parent 59e8e02af2
commit feb6e6b785
5 changed files with 14 additions and 14 deletions

View File

@@ -328,7 +328,7 @@ tr_torrentIsSeedRatioDone( tr_torrent * tor )
***/ ***/
void void
tr_torrentSetInactiveMode( tr_torrent * tor, tr_inactvelimit mode ) tr_torrentSetInactiveMode( tr_torrent * tor, tr_inactivelimit mode )
{ {
assert( tr_isTorrent( tor ) ); assert( tr_isTorrent( tor ) );
assert( mode==TR_INACTIVELIMIT_GLOBAL || mode==TR_INACTIVELIMIT_SINGLE || mode==TR_INACTIVELIMIT_UNLIMITED ); 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 ) tr_torrentGetInactiveMode( const tr_torrent * tor )
{ {
assert( tr_isTorrent( tor ) ); assert( tr_isTorrent( tor ) );

View File

@@ -259,7 +259,7 @@ struct tr_torrent
tr_ratiolimit ratioLimitMode; tr_ratiolimit ratioLimitMode;
uint64_t inactiveLimitMinutes; uint64_t inactiveLimitMinutes;
tr_inactvelimit inactiveLimitMode; tr_inactivelimit inactiveLimitMode;
uint64_t preVerifyTotal; uint64_t preVerifyTotal;
}; };

View File

@@ -1178,20 +1178,20 @@ typedef enum
TR_INACTIVELIMIT_SINGLE = 1, /* override the global settings, seeding until a certain inactive time */ 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_INACTIVELIMIT_UNLIMITED = 2 /* override the global settings, seeding regardless of activity */
} }
tr_inactvelimit; tr_inactivelimit;
void tr_torrentSetInactiveMode( tr_torrent * tor, void tr_torrentSetInactiveMode( tr_torrent * tor,
tr_inactvelimit mode ); 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 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 ***** Peer Limits

View File

@@ -98,8 +98,8 @@
- (BOOL) seedRatioSet; - (BOOL) seedRatioSet;
- (CGFloat) progressStopRatio; - (CGFloat) progressStopRatio;
- (tr_inactvelimit) inactiveSetting; - (tr_inactivelimit) inactiveSetting;
- (void) setInactiveSetting: (tr_inactvelimit) setting; - (void) setInactiveSetting: (tr_inactivelimit) setting;
- (NSUInteger) inactiveLimitMinutes; - (NSUInteger) inactiveLimitMinutes;
- (void) setInactiveLimitMinutes: (NSUInteger) limit; - (void) setInactiveLimitMinutes: (NSUInteger) limit;
- (BOOL) seedInactiveLimitSet; - (BOOL) seedInactiveLimitSet;

View File

@@ -393,12 +393,12 @@ int trashDataFile(const char * filename)
return fStat->seedRatioPercentDone; return fStat->seedRatioPercentDone;
} }
- (tr_inactvelimit) inactiveSetting - (tr_inactivelimit) inactiveSetting
{ {
return tr_torrentGetInactiveMode(fHandle); return tr_torrentGetInactiveMode(fHandle);
} }
- (void) setInactiveSetting: (tr_inactvelimit) setting - (void) setInactiveSetting: (tr_inactivelimit) setting
{ {
tr_torrentSetInactiveMode(fHandle, setting); tr_torrentSetInactiveMode(fHandle, setting);
} }