Fix tests stopping early due to pair logic

Needed a 2x here
This commit is contained in:
andrew committed 2023-09-20 10:55:38 -04:00
1 parent 37dfb585ad
commit ffb038b063
1 file changed
+1 -1
+1 -1
View File
@@ -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()