mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-03 22:31:34 +00:00
minor refactoring
This commit is contained in:
parent
17c39fe231
commit
dcad5410fe
2 changed files with 9 additions and 2 deletions
|
|
@ -2379,3 +2379,10 @@ def intersect(valueA, valueB):
|
|||
retVal = [val for val in arrayizeValue(valueA) if val in arrayizeValue(valueB)]
|
||||
|
||||
return retVal
|
||||
|
||||
def cpuThrottle(value):
|
||||
"""
|
||||
Does a CPU throttling for a lesser CPU consumption
|
||||
"""
|
||||
delay = 0.00001 * (value ** 2)
|
||||
time.sleep(delay)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue