diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2005-04-07 09:23:19 +0000 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2005-04-07 09:23:19 +0000 |
| commit | a567392950a174ccb85c7f6c5c4ad8de7c37773d (patch) | |
| tree | 238af6fa07544673af8a97bf7e309ff1e914bfe9 /doc | |
| parent | 5ab4ad5865fab22f9b8d90bf4ab1a73e8bba0dce (diff) | |
| download | python-apt-a567392950a174ccb85c7f6c5c4ad8de7c37773d.tar.gz | |
* added Current{CPS,Bytes,Items}, Total{Bytes,Items} to the fetch object
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/examples/action.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/examples/action.py b/doc/examples/action.py index d3cddbc4..e19025a6 100644 --- a/doc/examples/action.py +++ b/doc/examples/action.py @@ -25,8 +25,8 @@ class OpProgress: class FetchProgress: def __init__(self): pass - def Pulse(self, CurrentCPS, CurrentBytes, CurrentItems): - print "Pulse: CPS: %s Bytes: %s Item: %s" % (CurrentCPS, CurrentBytes, CurrentItems) + def Pulse(self): + print "Pulse: CPS: %s/s; Bytes: %s/%s; Item: %s/%s" % (apt_pkg.SizeToStr(self.CurrentCPS), apt_pkg.SizeToStr(self.CurrentBytes), apt_pkg.SizeToStr(self.TotalBytes), self.CurrentItems, self.TotalItems) |
