From 838c3a9040c842c9dd4690bf233a21cac2446690 Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Wed, 29 Jan 2014 08:09:06 -0500 Subject: [PATCH] last 24hr count needs to be failures only we were counting all hits, which sorts things incorrectly Change-Id: I36e3eb03cd4ad8d9ff6a407ebf09eac90d8327ce --- elastic_recheck/cmd/graph.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elastic_recheck/cmd/graph.py b/elastic_recheck/cmd/graph.py index 6ec32be3..35bcd65a 100755 --- a/elastic_recheck/cmd/graph.py +++ b/elastic_recheck/cmd/graph.py @@ -98,7 +98,7 @@ def main(): data.append([ts, fails]) # get the last 24 hr count as well, can't wait to have # the pandas code and able to do it that way - if ts > (now - (24 * STEP)): + if status == "FAILURE" and ts > (now - (24 * STEP)): bug['fails24'] += fails else: data.append([ts, 0])