summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Smoogen <smooge@redhat.com>2017-02-15 20:46:59 +0000
committerStephen Smoogen <smooge@redhat.com>2017-02-15 20:46:59 +0000
commit4ab43e5ffecfe357fb880f4a1d19c7517d329267 (patch)
tree35a1ff6b0570124cb3a32ab611bb76c9ec946221
parentda7c4b9456ac0d8c8886cd943c46b1b3bb2f7541 (diff)
downloadansible-4ab43e5ffecfe357fb880f4a1d19c7517d329267.tar.gz
ansible-4ab43e5ffecfe357fb880f4a1d19c7517d329267.tar.xz
ansible-4ab43e5ffecfe357fb880f4a1d19c7517d329267.zip
well lets try some dates
-rw-r--r--roles/web-data-analysis/files/hotspot-data.awk4
-rw-r--r--roles/web-data-analysis/files/hotspot-moving_avg.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/roles/web-data-analysis/files/hotspot-data.awk b/roles/web-data-analysis/files/hotspot-data.awk
index 244d61689..3e9a02947 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 35f1ce3da..13929fa48 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)