diff --git a/src/deluge_core.cpp b/src/deluge_core.cpp index 9cbfa1daf..0c6d719b7 100644 --- a/src/deluge_core.cpp +++ b/src/deluge_core.cpp @@ -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; }