Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion progressbar/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,12 @@ def update(self, pbar):
class FileTransferSpeed(Widget):
'Widget for showing the transfer speed (useful for file transfers).'

format = '%6.2f %s%s/s'
prefixes = ' kMGTPEZY'
__slots__ = ('unit', 'format')

def __init__(self, unit='B'):
self.unit = unit
self.format = '%6.2f %s%s/s'

def update(self, pbar):
'Updates the widget with the current SI prefixed speed.'
Expand Down