Commit fa6704c5 authored by Julien Muchembled's avatar Julien Muchembled

matrix: fix returned value by 'buildReport'

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2784 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 445b3aa3
...@@ -150,8 +150,10 @@ class MatrixImportBenchmark(BenchmarkRunner): ...@@ -150,8 +150,10 @@ class MatrixImportBenchmark(BenchmarkRunner):
report += sep report += sep
report += self.error_log report += self.error_log
if failures: if failures:
return '%d failures' % (failures, ) info = '%d failures' % (failures, )
return '%.1f KB/s' % (sum(speedlist) / len(speedlist)) else:
info = '%.1f KB/s' % (sum(speedlist) / len(speedlist))
return info, report
def main(args=None): def main(args=None):
MatrixImportBenchmark().run() MatrixImportBenchmark().run()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment