Commit 30a02e5c authored by Ad Schellevis's avatar Ad Schellevis

(ids) typo in previous commit

parent b813f3c6
...@@ -43,7 +43,7 @@ for filename in sorted(glob.glob('%s*'%suricata_alert_log)): ...@@ -43,7 +43,7 @@ for filename in sorted(glob.glob('%s*'%suricata_alert_log)):
row = dict() row = dict()
row['size'] = os.stat(filename).st_size row['size'] = os.stat(filename).st_size
# always list first file and non empty next. # always list first file and non empty next.
if row['size'] > 0 or filename.split('/')[-1].count('.') > 1: if row['size'] > 0 or filename.split('/')[-1].count('.') == 1:
row['modified'] = os.stat(filename).st_mtime row['modified'] = os.stat(filename).st_mtime
row['filename'] = filename.split('/')[-1] row['filename'] = filename.split('/')[-1]
# try to find actual timestamp from file # try to find actual timestamp from file
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment