Ticket #2754: dht_remote.patch

File dht_remote.patch, 1.0 KB (added by Elbandi, 12 years ago)
  • daemon/remote.c

    From: Elso Andras <ea333@freemail.hu>
    Date: Thu, 14 Jan 2010 00:40:09 +0000 (+0100)
    Subject: remote le is kerdezi a DHT announce idejet
    X-Git-Url: https://git.elbandi.net/?p=ubuntu%2Ftransmission.git;a=commitdiff_plain;h=f573093ed2143d455b879cfd6ebac053f49fed65
    
    remote le is kerdezi a DHT announce idejet
    ---
    
    diff --git a/daemon/remote.c b/daemon/remote.c
    index f00b5cb..071633a 100644
    a b static const char * details_keys[] = { 
    340340    "peersConnected",
    341341    "peersGettingFromUs",
    342342    "peersSendingToUs",
     343    "dhtAnnounceTime",
    343344    "peer-limit",
    344345    "blockCount",
    345346    "blockSize",
    printDetails( tr_benc * top ) 
    12941295                        PRId64
    12951296                        " web seeds\n", i, n );
    12961297            }
     1298            if( tr_bencDictFindInt( t, "dhtAnnounceTime", &i ) && i )
     1299            {
     1300                const time_t tt = i;
     1301                printf( "  Next DHT announce:  %s", ctime( &tt ) );
     1302            }
    12971303            printf( "\n" );
    12981304
    12991305            printf( "HISTORY\n" );