mirror of
https://github.com/transmission/transmission
synced 2025-03-03 10:15:45 +00:00
(trunk libT) sync the tr_wait_msec() calls in daemon/ and cli/
This commit is contained in:
parent
696aa7aba6
commit
66983ddc70
3 changed files with 7 additions and 7 deletions
10
cli/cli.c
10
cli/cli.c
|
@ -32,7 +32,7 @@
|
|||
#include <libtransmission/bencode.h>
|
||||
#include <libtransmission/makemeta.h>
|
||||
#include <libtransmission/tr-getopt.h>
|
||||
#include <libtransmission/utils.h> /* tr_wait */
|
||||
#include <libtransmission/utils.h> /* tr_wait_msec */
|
||||
#include <libtransmission/version.h>
|
||||
#include <libtransmission/web.h> /* tr_webRun */
|
||||
|
||||
|
@ -365,7 +365,7 @@ main( int argc,
|
|||
tr_makeMetaInfo( b, torrentPath, announce, announceCount, comment, isPrivate );
|
||||
while( !b->isDone )
|
||||
{
|
||||
tr_wait( 1000 );
|
||||
tr_wait_msec( 1000 );
|
||||
printf( "." );
|
||||
}
|
||||
|
||||
|
@ -385,7 +385,7 @@ main( int argc,
|
|||
} else if( !memcmp( torrentPath, "http", 4 ) ) {
|
||||
tr_webRun( h, torrentPath, NULL, onTorrentFileDownloaded, ctor );
|
||||
waitingOnWeb = TRUE;
|
||||
while( waitingOnWeb ) tr_wait( 1000 );
|
||||
while( waitingOnWeb ) tr_wait_msec( 1000 );
|
||||
}
|
||||
tr_free( fileContents );
|
||||
|
||||
|
@ -421,7 +421,7 @@ main( int argc,
|
|||
fprintf( stderr, "scraping %d trackers:\n", leftToScrape );
|
||||
|
||||
while( leftToScrape > 0 && ( ( time( NULL ) - start ) < 20 ) )
|
||||
tr_wait( 250 );
|
||||
tr_wait_msec( 250 );
|
||||
}
|
||||
goto cleanup;
|
||||
}
|
||||
|
@ -470,7 +470,7 @@ main( int argc,
|
|||
"Tracker gave an error:",
|
||||
"Error:" };
|
||||
|
||||
tr_wait( 200 );
|
||||
tr_wait_msec( 200 );
|
||||
|
||||
if( gotsig )
|
||||
{
|
||||
|
|
|
@ -417,7 +417,7 @@ main( int argc, char ** argv )
|
|||
#endif
|
||||
|
||||
while( !closing ) {
|
||||
tr_wait( 1000 ); /* sleep one second */
|
||||
tr_wait_msec( 1000 ); /* sleep one second */
|
||||
dtr_watchdir_update( watchdir );
|
||||
pumpLogMessages( foreground );
|
||||
}
|
||||
|
|
|
@ -1469,7 +1469,7 @@ printDetails( tr_benc * top )
|
|||
for( i=k=0; k<len; ++k ) {
|
||||
int e;
|
||||
for( e=0; i<j && e<8; ++e, ++i )
|
||||
printf( str[k] & (1<<(7-e)) ? "1" : "0" );
|
||||
printf( "%c", str[k] & (1<<(7-e)) ? '1' : '0' );
|
||||
printf( " " );
|
||||
if( !(i%64) )
|
||||
printf( "\n " );
|
||||
|
|
Loading…
Reference in a new issue