Fixing setting speed limit of torrent in WEBUI

Fixing setting speed limit of torrent in WEBUI when global speed limit
is not set.
This commit is contained in:
buinsky 2014-11-05 04:46:34 +03:00
commit 5cc90844a5

View file

@ -31,7 +31,7 @@ MochaUI.extend({
if(tmp > 0) { if(tmp > 0) {
maximum = tmp / 1024. maximum = tmp / 1024.
} else { } else {
maximum = 0 maximum = 1000
} }
} }
// Get torrent upload limit // Get torrent upload limit
@ -118,7 +118,7 @@ MochaUI.extend({
if(tmp > 0) { if(tmp > 0) {
maximum = tmp / 1024. maximum = tmp / 1024.
} else { } else {
maximum = 0 maximum = 1000
} }
} }
// Get torrent download limit // Get torrent download limit