mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 12:41:30 +00:00
minor refactoring
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user