Changeset 9851


Ignore:
Timestamp:
Jan 1, 2010, 10:40:54 PM (12 years ago)
Author:
charles
Message:

(trunk libT) sync the tr_wait_msec() calls in daemon/ and cli/

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/cli/cli.c

    r9656 r9851  
    3333#include <libtransmission/makemeta.h>
    3434#include <libtransmission/tr-getopt.h>
    35 #include <libtransmission/utils.h> /* tr_wait */
     35#include <libtransmission/utils.h> /* tr_wait_msec */
    3636#include <libtransmission/version.h>
    3737#include <libtransmission/web.h> /* tr_webRun */
     
    366366        while( !b->isDone )
    367367        {
    368             tr_wait( 1000 );
     368            tr_wait_msec( 1000 );
    369369            printf( "." );
    370370        }
     
    386386        tr_webRun( h, torrentPath, NULL, onTorrentFileDownloaded, ctor );
    387387        waitingOnWeb = TRUE;
    388         while( waitingOnWeb ) tr_wait( 1000 );
     388        while( waitingOnWeb ) tr_wait_msec( 1000 );
    389389    }
    390390    tr_free( fileContents );
     
    422422
    423423            while( leftToScrape > 0 && ( ( time( NULL ) - start ) < 20 ) )
    424                 tr_wait( 250 );
     424                tr_wait_msec( 250 );
    425425        }
    426426        goto cleanup;
     
    471471                                             "Error:" };
    472472
    473         tr_wait( 200 );
     473        tr_wait_msec( 200 );
    474474
    475475        if( gotsig )
  • trunk/daemon/daemon.c

    r9671 r9851  
    418418
    419419    while( !closing ) {
    420         tr_wait( 1000 ); /* sleep one second */
     420        tr_wait_msec( 1000 ); /* sleep one second */
    421421        dtr_watchdir_update( watchdir );
    422422        pumpLogMessages( foreground );
  • trunk/daemon/remote.c

    r9682 r9851  
    14701470                    int e;
    14711471                    for( e=0; i<j && e<8; ++e, ++i )
    1472                         printf( str[k] & (1<<(7-e)) ? "1" : "0" );
     1472                        printf( "%c", str[k] & (1<<(7-e)) ? '1' : '0' );
    14731473                    printf( " " );
    14741474                    if( !(i%64) )
Note: See TracChangeset for help on using the changeset viewer.