From fe0fecf3c5a741be7aca40b9c5806c6e41cfcc9c Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sun, 12 Feb 2017 17:51:07 +0200 Subject: Count files in generation --- obnamlib/fmt_ga/client.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/obnamlib/fmt_ga/client.py b/obnamlib/fmt_ga/client.py index 635cc192..ccf9a49c 100644 --- a/obnamlib/fmt_ga/client.py +++ b/obnamlib/fmt_ga/client.py @@ -405,9 +405,12 @@ class GAClient(object): dump('after getting file metadata for generation') union = set() + n = 0 for filename in metadata: + n += 1 union = union.union(set(metadata.get_file_chunk_ids(filename))) dump('after building union of sets') + dump('gen has {} files'.format(n)) result = list(union) dump('after constructing result') -- cgit v1.2.1