mirror of
https://github.com/correl/dejavu.git
synced 2024-11-23 19:19:53 +00:00
Incorporated MAX_HASH_TIME_DELTA optimization
This commit is contained in:
parent
3c6b741db4
commit
e1454bf1ea
1 changed files with 1 additions and 2 deletions
|
@ -110,8 +110,7 @@ def generate_hashes(peaks, fan_value=DEFAULT_FAN_VALUE):
|
|||
|
||||
if t_delta >= MIN_HASH_TIME_DELTA and t_delta <= MAX_HASH_TIME_DELTA:
|
||||
h = hashlib.sha1(
|
||||
"%s|%s|%s" % (str(freq1), str(freq2), str(t_delta))
|
||||
)
|
||||
"%s|%s|%s" % (str(freq1), str(freq2), str(t_delta)))
|
||||
yield (h.hexdigest()[0:20], t1)
|
||||
|
||||
# ensure we don't repeat hashing
|
||||
|
|
Loading…
Reference in a new issue