diff options
author | Lars Wirzenius <liw@iki.fi> | 2008-04-27 00:24:36 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@iki.fi> | 2008-04-27 00:24:36 +0300 |
commit | 29178542c292755db4c4dff2a2dffac674734190 (patch) | |
tree | 3cf27d6e4feb3d3dfd53600c35157804c43a8ce8 /obnam | |
parent | 04e39e05a718e363e155a1de7700eecd4712db04 (diff) | |
download | obnam-29178542c292755db4c4dff2a2dffac674734190.tar.gz |
Have the file backend report up/download amounts properly.
Diffstat (limited to 'obnam')
-rw-r--r-- | obnam/backend.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/obnam/backend.py b/obnam/backend.py index e5d806eb..ad274245 100644 --- a/obnam/backend.py +++ b/obnam/backend.py @@ -333,6 +333,7 @@ class FileBackend(Backend): f = os.fdopen(fd, "w") f.write(block) self.bytes_written += len(block) + self.progress.update_uploaded(self.bytes_written) f.close() def really_download_block(self, block_id): @@ -340,6 +341,7 @@ class FileBackend(Backend): f = file(self.block_remote_pathname(block_id), "r") block = f.read() self.bytes_read += len(block) + self.progress.update_uploaded(self.bytes_read) f.close() except IOError, e: raise e |