static const char * details_keys[] = {
"activityDate",
"addedDate",
+ "bandwidthPriority",
"comment",
"corruptEver",
"creator",
return buf;
}
+static const char *bandwidthPriorityNames[] =
+ { "Low", "Normal", "High", "Invalid" };
+
static void
printDetails( tr_benc * top )
{
printf( " Piece Size: %" PRId64 "\n", i );
printf( "\n" );
- printf( "LIMITS\n" );
+ printf( "LIMITS & BANDWIDTH\n" );
if( tr_bencDictFindBool( t, "downloadLimited", &boolVal )
&& tr_bencDictFindInt( t, "downloadLimit", &i ) )
{
printf( " Honors Session Limits: %s\n", ( boolVal ? "Yes" : "No" ) );
if( tr_bencDictFindInt ( t, "peer-limit", &i ) )
printf( " Peer limit: %" PRId64 "\n", i );
+ if (tr_bencDictFindInt (t, "bandwidthPriority", &i))
+ printf (" Bandwidth Priority: %s\n",
+ bandwidthPriorityNames[(i + 1) & 3]);
+
printf( "\n" );
printf( "PIECES\n" );