summaryrefslogtreecommitdiff
path: root/obnamlib/plugins/restore_plugin.py
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2013-12-19 20:09:43 +0200
committerLars Wirzenius <liw@liw.fi>2013-12-28 21:51:24 +0000
commit0bcd247004a7946d4c0d11bc3e0c6642ef18e133 (patch)
tree5cf1557e29e576979922d393de9d1e1516672877 /obnamlib/plugins/restore_plugin.py
parentaf620503c3d26e939ad5bbab36d0f043cb9f2578 (diff)
downloadobnam-0bcd247004a7946d4c0d11bc3e0c6642ef18e133.tar.gz
Have restore use correct file, data counts
Diffstat (limited to 'obnamlib/plugins/restore_plugin.py')
-rw-r--r--obnamlib/plugins/restore_plugin.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/obnamlib/plugins/restore_plugin.py b/obnamlib/plugins/restore_plugin.py
index 1bade54e..4b825a86 100644
--- a/obnamlib/plugins/restore_plugin.py
+++ b/obnamlib/plugins/restore_plugin.py
@@ -127,10 +127,10 @@ class RestorePlugin(obnamlib.ObnamPlugin):
gen = self.repo.interpret_generation_spec(client_name, generations[0])
self.configure_ttystatus()
- # FIXME: should initialise self.app.ts['total'] and
- # self.app.ts['total-bytes'] from the generation metadata,
- # but RepositoryInterface does not yet support that. To be
- # fixed later.
+ self.app.ts['total'] = self.repo.get_generation_key(
+ gen, obnamlib.REPO_GENERATION_FILE_COUNT)
+ self.app.ts['total-bytes'] = self.repo.get_generation_key(
+ gen, obnamlib.REPO_GENERATION_TOTAL_DATA)
self.app.dump_memory_profile('at beginning after setup')