add print for set_[up|down]load_rate_limit
This commit is contained in:
parent
58d4c6381e
commit
fc5b6e525a
|
@ -474,8 +474,8 @@ static PyObject *torrent_set_download_rate_limit(PyObject *self, PyObject *args)
|
|||
if (!PyArg_ParseTuple(args, "i", &arg))
|
||||
return NULL;
|
||||
|
||||
// printf("Capping download to %d bytes per second\r\n", (int)arg);
|
||||
M_ses->set_download_rate_limit(arg);
|
||||
printf("Capping download to %d bytes per second\n", (int)M_ses->download_rate_limit());
|
||||
|
||||
Py_INCREF(Py_None); return Py_None;
|
||||
}
|
||||
|
@ -487,8 +487,8 @@ static PyObject *torrent_set_upload_rate_limit(PyObject *self, PyObject *args)
|
|||
if (!PyArg_ParseTuple(args, "i", &arg))
|
||||
return NULL;
|
||||
|
||||
// printf("Capping upload to %d bytes per second\r\n", (int)arg);
|
||||
M_ses->set_upload_rate_limit(arg);
|
||||
printf("Capping upload to %d bytes per second\n", (int)M_ses->upload_rate_limit());
|
||||
Py_INCREF(Py_None); return Py_None;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue