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()
|
||||
reqtime = time.time()
|
||||
if len(rows) < config.ppf.threads:
|
||||
time.sleep(5)
|
||||
rows = []
|
||||
else:
|
||||
nao = time.time()
|
||||
|
||||
Reference in New Issue
Block a user