Changeset 12548 for trunk/gtk/tr-prefs.c


Ignore:
Timestamp:
Jul 13, 2011, 7:22:10 PM (10 years ago)
Author:
jordan
Message:

(trunk gtk, qt) #4165 "FD_SETSIZE impact on open-file-limit and peer-limit-global" -- cap the per-torrent and per-session peer limits at FD_SETSIZE.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/tr-prefs.c

    r12467 r12548  
    12011201    hig_workarea_add_section_title( t, &row, _( "Peer Limits" ) );
    12021202
    1203     w = new_spin_button( TR_PREFS_KEY_PEER_LIMIT_TORRENT, core, 1, 300, 5 );
     1203    w = new_spin_button( TR_PREFS_KEY_PEER_LIMIT_TORRENT, core, 1, FD_SETSIZE, 5 );
    12041204    hig_workarea_add_row( t, &row, _( "Maximum peers per _torrent:" ), w, NULL );
    1205     w = new_spin_button( TR_PREFS_KEY_PEER_LIMIT_GLOBAL, core, 1, 3000, 5 );
     1205    w = new_spin_button( TR_PREFS_KEY_PEER_LIMIT_GLOBAL, core, 1, FD_SETSIZE, 5 );
    12061206    hig_workarea_add_row( t, &row, _( "Maximum peers _overall:" ), w, NULL );
    12071207
Note: See TracChangeset for help on using the changeset viewer.