Changeset 10884


Ignore:
Timestamp:
Jun 26, 2010, 8:48:52 PM (12 years ago)
Author:
charles
Message:

(trunk daemon) #3284 "show bandwidth priorities in transmission-remote" -- added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/daemon/remote.c

    r10854 r10884  
    588588    "activityDate",
    589589    "addedDate",
     590    "bandwidthPriority",
    590591    "comment",
    591592    "corruptEver",
     
    750751}
    751752
     753static const char *bandwidthPriorityNames[] =
     754    { "Low", "Normal", "High", "Invalid" };
     755
    752756static void
    753757printDetails( tr_benc * top )
     
    10681072            printf( "\n" );
    10691073
    1070             printf( "LIMITS\n" );
     1074            printf( "LIMITS & BANDWIDTH\n" );
    10711075            if( tr_bencDictFindBool( t, "downloadLimited", &boolVal )
    10721076                && tr_bencDictFindInt( t, "downloadLimit", &i ) )
     
    10911095            if( tr_bencDictFindInt ( t, "peer-limit", &i ) )
    10921096                printf( "  Peer limit: %" PRId64 "\n", i );
     1097            if (tr_bencDictFindInt (t, "bandwidthPriority", &i))
     1098                printf ("  Bandwidth Priority: %s\n",
     1099                        bandwidthPriorityNames[(i + 1) & 3]);
     1100   
    10931101            printf( "\n" );
    10941102
Note: See TracChangeset for help on using the changeset viewer.