Merge "simplify swift report"
This commit is contained in:
commit
1e1428cbd6
@ -43,12 +43,10 @@ class SwiftStorage(_carbonara.CarbonaraBasedStorage):
|
|||||||
if details:
|
if details:
|
||||||
headers, files = self.swift.get_container(self.MEASURE_PREFIX,
|
headers, files = self.swift.get_container(self.MEASURE_PREFIX,
|
||||||
full_listing=True)
|
full_listing=True)
|
||||||
metrics = set()
|
|
||||||
for f in files:
|
for f in files:
|
||||||
metric, metric_files = f['name'].split("/", 1)
|
metric, __ = f['name'].split("/", 1)
|
||||||
metric_details[metric] += 1
|
metric_details[metric] += 1
|
||||||
metrics.add(metric)
|
nb_metrics = len(metric_details)
|
||||||
nb_metrics = len(metrics)
|
|
||||||
else:
|
else:
|
||||||
headers, files = self.swift.get_container(self.MEASURE_PREFIX,
|
headers, files = self.swift.get_container(self.MEASURE_PREFIX,
|
||||||
delimiter='/',
|
delimiter='/',
|
||||||
|
Loading…
Reference in New Issue
Block a user