From: Scott Baker <smbaker@gmail.com>
Date: Mon, 21 Apr 2014 08:07:19 +0000 (-0700)
Subject: discard statistics > 80 seconds old when doing cdn operator view
X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=8b594db1208dd5ca5f6853f11ba239669dd05878;p=plstackapi.git

discard statistics > 80 seconds old when doing cdn operator view
---

diff --git a/planetstack/core/plus/views.py b/planetstack/core/plus/views.py
index 74222b0..d4cc56b 100644
--- a/planetstack/core/plus/views.py
+++ b/planetstack/core/plus/views.py
@@ -210,7 +210,7 @@ def getCDNOperatorData(randomizeData = False):
 
     #rows = [x for x in rows if x.get("slice","") in hpc_sliceNames]
 
-    rows = bq.postprocess_results(rows, filter={"slice": "HyperCache"}, maxi=["cpu"], count=["hostname"], computed=["bytes_sent/elapsed"], groupBy=["Time","site"])
+    rows = bq.postprocess_results(rows, filter={"slice": "HyperCache"}, maxi=["cpu"], count=["hostname"], computed=["bytes_sent/elapsed"], groupBy=["Time","site"], maxDeltaTime=80)
 
     bq.merge_datamodel_sites(rows)