diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2009-07-27 10:37:50 +0200 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2009-07-27 10:37:50 +0200 |
| commit | 0695e2f15f7a2dd905fd437a72671b9ba9776f17 (patch) | |
| tree | 17406733327ddfb9f7b85903cb63fb8a235165a2 /python | |
| parent | 8cabb1fc9b220dbde4996cc205b8d71b618ade61 (diff) | |
| download | python-apt-0695e2f15f7a2dd905fd437a72671b9ba9776f17.tar.gz | |
add better commet in update
Diffstat (limited to 'python')
| -rw-r--r-- | python/progress.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/python/progress.cc b/python/progress.cc index 94debe40..b3e06b87 100644 --- a/python/progress.cc +++ b/python/progress.cc @@ -72,8 +72,10 @@ void PyOpProgress::Update() PyObject_SetAttrString(callbackInst, "majorChange", o); Py_XDECREF(o); - // Build up the argument list... - if(CheckChange(0.05)) + // CheckChange takes a time delta argument how often we + // should run update - for interactive UIs it makes sense + // to run ~25/sec + if(CheckChange(0.04)) { PyObject *arglist = Py_BuildValue("(f)", Percent); RunSimpleCallback("update", arglist); |
