(trunk gtk, qt) #4165 "__FD_SETSIZE impact on open-file-limit and peer-limit-global...
authorJordan Lee <jordan@transmissionbt.com>
Wed, 13 Jul 2011 19:22:10 +0000 (19:22 +0000)
committerJordan Lee <jordan@transmissionbt.com>
Wed, 13 Jul 2011 19:22:10 +0000 (19:22 +0000)
gtk/tr-prefs.c
qt/prefs-dialog.cc

index e231e956e420140847276252355ff2559be1d7ef..adddcdf6a4b3df5ac15fd0fbc60a8e291a90dbec 100644 (file)
@@ -1200,9 +1200,9 @@ networkPage( GObject * core )
     hig_workarea_add_section_divider( t, &row );
     hig_workarea_add_section_title( t, &row, _( "Peer Limits" ) );
 
-    w = new_spin_button( TR_PREFS_KEY_PEER_LIMIT_TORRENT, core, 1, 300, 5 );
+    w = new_spin_button( TR_PREFS_KEY_PEER_LIMIT_TORRENT, core, 1, FD_SETSIZE, 5 );
     hig_workarea_add_row( t, &row, _( "Maximum peers per _torrent:" ), w, NULL );
-    w = new_spin_button( TR_PREFS_KEY_PEER_LIMIT_GLOBAL, core, 1, 3000, 5 );
+    w = new_spin_button( TR_PREFS_KEY_PEER_LIMIT_GLOBAL, core, 1, FD_SETSIZE, 5 );
     hig_workarea_add_row( t, &row, _( "Maximum peers _overall:" ), w, NULL );
 
     hig_workarea_add_section_divider( t, &row );
index 5e9e1fc895b0d5f0578910b4c9601062c98b964b..64099c8c90e3947db7ef4f6f81de5f9544ebaac5 100644 (file)
@@ -352,8 +352,8 @@ PrefsDialog :: createNetworkTab( )
 
     hig->addSectionDivider( );
     hig->addSectionTitle( tr( "Limits" ) );
-    hig->addRow( tr( "Maximum peers per &torrent:" ), spinBoxNew( Prefs::PEER_LIMIT_TORRENT, 1, 300, 5 ) );
-    hig->addRow( tr( "Maximum peers &overall:" ), spinBoxNew( Prefs::PEER_LIMIT_GLOBAL, 1, 3000, 5 ) );
+    hig->addRow( tr( "Maximum peers per &torrent:" ), spinBoxNew( Prefs::PEER_LIMIT_TORRENT, 1, FD_SETSIZE, 5 ) );
+    hig->addRow( tr( "Maximum peers &overall:" ), spinBoxNew( Prefs::PEER_LIMIT_GLOBAL, 1, FD_SETSIZE, 5 ) );
 
     hig->addSectionDivider( );
     hig->addSectionTitle( tr( "Options" ) );