From 7e5b2dee624fb0fb7a6536cfdc74d30eeca8ffbe Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Thu, 16 Jul 2009 19:27:46 +0200 Subject: python/acquire.cc, python/progress.cc: More fixes. --- python/progress.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'python/progress.cc') diff --git a/python/progress.cc b/python/progress.cc index 18e038dd..1f17afdf 100644 --- a/python/progress.cc +++ b/python/progress.cc @@ -247,6 +247,11 @@ bool PyFetchProgress::Pulse(pkgAcquire * Owner) // set stats PyObject *o; + + + o = Py_BuildValue("d", FetchedBytes); + PyObject_SetAttrString(callbackInst, "fetched_bytes", o); + Py_DECREF(o); o = Py_BuildValue("d", CurrentCPS); if(PyObject_HasAttrString(callbackInst, "current_cps")) PyObject_SetAttrString(callbackInst, "current_cps", o); -- cgit v1.2.3