diff options
Diffstat (limited to 'python/progress.cc')
| -rw-r--r-- | python/progress.cc | 5 |
1 files changed, 5 insertions, 0 deletions
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); |
