diff --git a/OpenBench/utils.py b/OpenBench/utils.py index 1153769..d3c4108 100644 --- a/OpenBench/utils.py +++ b/OpenBench/utils.py @@ -423,7 +423,7 @@ def update_test(request, machine): x = param['value'] + float(request.POST['spsa_%s' % (name)]) param['value'] = max(param['min'], min(param['max'], x)) - test.finished = test.games / test.spsa['pairs_per'] > test.spsa['iterations'] + test.finished = test.games >= 2 * test.spsa['pairs_per'] * test.spsa['iterations'] test.save()