Commit 7a899d72 authored by Arnaud Fontaine's avatar Arnaud Fontaine

Fix periodic flushing of results

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk/utils@46020 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6fd70e9b
......@@ -138,7 +138,7 @@ class BenchmarkProcess(multiprocessing.Process):
self.runBenchmarkSuiteList(result)
self._current_repeat += 1
if self._current_repeat == RESULT_NUMBER_BEFORE_FLUSHING:
if not self._current_repeat % RESULT_NUMBER_BEFORE_FLUSHING:
result.flush()
except StopIteration, e:
......
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