From 4a27ae1e5c051c1997392efa14733dea1c2ce8ce Mon Sep 17 00:00:00 2001 From: Anatoly Kopyl Date: Thu, 16 Nov 2017 01:24:42 +0300 Subject: [PATCH] Fixed a typo --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 1cfa035..2d968e9 100644 --- a/main.py +++ b/main.py @@ -7,7 +7,7 @@ from anomaly import is_anomaly TIME_SPAN = 900 # 15 minutes 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='"') 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 - if 'start_time2' not in locals(): + if 'start_time' not in locals(): start_time = timestamp start_time = int(min(start_time, timestamp)) # earliest request if 'end_time' not in locals():