mirror of
https://github.com/adulau/MalwareClassifier.git
synced 2024-12-13 04:17:19 +00:00
Add counter on fields
This commit is contained in:
parent
5ef2a49702
commit
5106f89bc9
1 changed files with 1 additions and 0 deletions
|
@ -25,6 +25,7 @@ if args.f is not None:
|
|||
for element in elements:
|
||||
try:
|
||||
r.sadd('e:'+fields[i], element)
|
||||
r.zincrby('t:'+fields[i], element)
|
||||
#
|
||||
ehash = hashlib.md5()
|
||||
ehash.update(element.encode('utf-8'))
|
||||
|
|
Loading…
Reference in a new issue