ppf: play nice with cpu

This commit is contained in:
Your Name
2021-02-10 22:26:27 +01:00
parent 298987612c
commit 1a4d51f08c

1
ppf.py
View File

@@ -330,6 +330,7 @@ if __name__ == '__main__':
rows = urldb.execute(qurl, (config.ppf.max_fail, config.ppf.checktime, config.ppf.perfail_checktime, int(time.time()))).fetchall()
reqtime = time.time()
if len(rows) < config.ppf.threads:
time.sleep(5)
rows = []
else:
nao = time.time()