Keep Noob workers on more active frameworks

This commit is contained in:
Andrew Grant committed 2021-07-06 16:22:35 -04:00
1 parent cf9fe28382
commit f0f014ea20
1 file changed
+1 -1
+1 -1
View File
@@ -626,7 +626,7 @@ def clientGetWorkload(request):
# HACK: Make Noobpwnftw's workers jump around
if request.POST['username'] == 'WorkerPool':
if random.randrange(2) == 1:
if random.randrange(1 + len(getActiveTests())) == 0:
return HttpResponse('None')
# Verify the User's credentials