Ticket #97: remove_arbitrary_limits.patch

File remove_arbitrary_limits.patch, 1.1 KB (added by ben@…, 16 years ago)

Patch to remove arbitrary limits on settings

  • plugin.py

    commit 1cf034cffbd8cbc372c092f2e3733705363752a0
    Author: Ben Axnick <baxnick@milamber.axnick.com.au>
    Date:   Wed Mar 19 22:39:24 2008 +1100
    
        Remove arbitrary limitations on scheduler settings
    
    diff --git a/plugin.py b/plugin.py
    index c43bd28..9ac8667 100644
    a b class plugin_Scheduler: 
    110110        #data 
    111111        spin = {} 
    112112        boxen = [ 
    113                  ["down", _("Download limit:"), -1, 2048],  
    114                  ["up", _("Upload limit:"), -1, 1024], 
    115                  ["activetorrents", _("Active torrents:"), 0, 128], 
    116                  ["numslots", _("Upload Slots:"), 0, 128], 
    117                  ["maxconns", _("Max Connections:"), 0, 1024]] 
     113                 ["down", _("Download limit:"), -1, 100000],  
     114                 ["up", _("Upload limit:"), -1, 100000], 
     115                 ["activetorrents", _("Active torrents:"), 0, 10000], 
     116                 ["numslots", _("Upload Slots:"), 0, 10000], 
     117                 ["maxconns", _("Max Connections:"), 0, 10000]] 
    118118         
    119119        #dialog 
    120120        dialog = gtk.Dialog(_("Scheduler Settings"))