Thread: [See Bugtracker] Speed Limit takes only half of limit
View Single Post
  #5  
Old 17.03.2016, 12:37
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 505
Default

Can use a script in event scripter to dynamically control the speed limit as a workaround.

Code:
//Trigger: Interval (Recommended 30000ms or more)

var maxSpeed = callAPI("config", "get", "org.jdownloader.settings.GeneralSettings", null, "downloadspeedlimit");

if (getTotalSpeed() > maxSpeed) {
    setSpeedlimit(maxSpeed)
} else {
    setSpeedlimit(0)
}

Last edited by mgpai; 17.03.2016 at 13:18. Reason: Modified script to fetch the "maxSpeed" value from Jdownloader settings instead of entering manually.
Reply With Quote