From fc5b6e525a71aa5baeec342a7558d3f5d639cee7 Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Wed, 8 Aug 2007 01:11:59 +0000 Subject: [PATCH] add print for set_[up|down]load_rate_limit --- src/deluge_core.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }