mirror of
https://github.com/anatolykopyl/DINS-test-assignment.git
synced 2026-03-26 12:55:05 +00:00
Fixed a typo
This commit is contained in:
4
main.py
4
main.py
@@ -7,7 +7,7 @@ from anomaly import is_anomaly
|
|||||||
|
|
||||||
TIME_SPAN = 900 # 15 minutes
|
TIME_SPAN = 900 # 15 minutes
|
||||||
result = {}
|
result = {}
|
||||||
with open('raw_data2.csv', 'rt', encoding="UTF-8") as csvfile:
|
with open('raw_data.csv', 'rt', encoding="UTF-8") as csvfile:
|
||||||
reader = csv.reader(csvfile, quotechar='"')
|
reader = csv.reader(csvfile, quotechar='"')
|
||||||
|
|
||||||
for row in reader:
|
for row in reader:
|
||||||
@@ -16,7 +16,7 @@ with open('raw_data2.csv', 'rt', encoding="UTF-8") as csvfile:
|
|||||||
|
|
||||||
name = row[1] + "*" + row[2] # combining api_name and http_method into a pair name
|
name = row[1] + "*" + row[2] # combining api_name and http_method into a pair name
|
||||||
|
|
||||||
if 'start_time2' not in locals():
|
if 'start_time' not in locals():
|
||||||
start_time = timestamp
|
start_time = timestamp
|
||||||
start_time = int(min(start_time, timestamp)) # earliest request
|
start_time = int(min(start_time, timestamp)) # earliest request
|
||||||
if 'end_time' not in locals():
|
if 'end_time' not in locals():
|
||||||
|
|||||||
Reference in New Issue
Block a user