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/qt/prefs-dialog.cc

    r11923 r12548  
    353353    hig->addSectionDivider( );
    354354    hig->addSectionTitle( tr( "Limits" ) );
    355     hig->addRow( tr( "Maximum peers per &torrent:" ), spinBoxNew( Prefs::PEER_LIMIT_TORRENT, 1, 300, 5 ) );
    356     hig->addRow( tr( "Maximum peers &overall:" ), spinBoxNew( Prefs::PEER_LIMIT_GLOBAL, 1, 3000, 5 ) );
     355    hig->addRow( tr( "Maximum peers per &torrent:" ), spinBoxNew( Prefs::PEER_LIMIT_TORRENT, 1, FD_SETSIZE, 5 ) );
     356    hig->addRow( tr( "Maximum peers &overall:" ), spinBoxNew( Prefs::PEER_LIMIT_GLOBAL, 1, FD_SETSIZE, 5 ) );
    357357
    358358    hig->addSectionDivider( );
Note: See TracChangeset for help on using the changeset viewer.