Fix stat calculation and add error threshold #153

Merged
abereziny merged 1 commit from abereziny/frostfs-testlib:bugfix-report-calculation into master 2023-12-22 09:17:48 +00:00

View file

@ -84,7 +84,8 @@ class SummarizedStats:
target.rate += operation.rate target.rate += operation.rate
target.latencies.by_node[node_key] = operation.latency target.latencies.by_node[node_key] = operation.latency
target.throughput += operation.throughput target.throughput += operation.throughput
if metrics.write.failed_iterations: target.errors.threshold = load_params.error_threshold
if operation.failed_iterations:
target.errors.by_node[node_key] = operation.failed_iterations target.errors.by_node[node_key] = operation.failed_iterations
for operation in summarized.values(): for operation in summarized.values():