ppf: play nice with cpu
This commit is contained in:
1
ppf.py
1
ppf.py
@@ -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()
|
rows = urldb.execute(qurl, (config.ppf.max_fail, config.ppf.checktime, config.ppf.perfail_checktime, int(time.time()))).fetchall()
|
||||||
reqtime = time.time()
|
reqtime = time.time()
|
||||||
if len(rows) < config.ppf.threads:
|
if len(rows) < config.ppf.threads:
|
||||||
|
time.sleep(5)
|
||||||
rows = []
|
rows = []
|
||||||
else:
|
else:
|
||||||
nao = time.time()
|
nao = time.time()
|
||||||
|
|||||||
Reference in New Issue
Block a user