diff --git a/roles/web-data-analysis/files/hotspot-data.awk b/roles/web-data-analysis/files/hotspot-data.awk index 244d616898..3e9a029477 100644 --- a/roles/web-data-analysis/files/hotspot-data.awk +++ b/roles/web-data-analysis/files/hotspot-data.awk @@ -1,10 +1,10 @@ BEGIN{ - date=strftime("%F",0); + date=strftime("%F",172800); count=1; sum=0; most=0; least=0 - print date ",AVG,LEAST,MAX" + print "1970-01-01,AVG,LEAST,MAX" } { diff --git a/roles/web-data-analysis/files/hotspot-moving_avg.py b/roles/web-data-analysis/files/hotspot-moving_avg.py index 35f1ce3da0..13929fa481 100644 --- a/roles/web-data-analysis/files/hotspot-moving_avg.py +++ b/roles/web-data-analysis/files/hotspot-moving_avg.py @@ -30,7 +30,7 @@ rolling = 7 tree = {} -df = pandas.read_csv("hotspot-new.csv") +df = pandas.read_csv("/var/www/html/csv-reports/hotspot/hotspotdata-all.csv") dates = df['1970-01-01'] AVG = pandas.rolling_mean(df['AVG'],rolling)