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
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 ) );

View File

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

View File

@@ -1178,12 +1178,12 @@ 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 );
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,
uint64_t inactiveMinutes );

View File

@@ -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;

View File

@@ -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);
}