diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2009-08-18 11:21:44 +0200 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2009-08-18 11:21:44 +0200 |
| commit | 425ef1b37240140a86ad249c0864b0bf65a2f105 (patch) | |
| tree | e3a926a8b8ff58054d321aeec36c3c572ba0493a /python | |
| parent | b901e22c3b747dd463bc13be10826bf90934c223 (diff) | |
| parent | 3240444c0e57d36c6ed822c51c4f41903f939d3e (diff) | |
| download | python-apt-425ef1b37240140a86ad249c0864b0bf65a2f105.tar.gz | |
merged from the mvo branch
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); |
