add print for set_[up|down]load_rate_limit

This commit is contained in:
Marcos Pinto 2007-08-08 01:11:59 +00:00
parent 58d4c6381e
commit fc5b6e525a
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}