last 24hr count needs to be failures only

we were counting all hits, which sorts things incorrectly

Change-Id: I36e3eb03cd4ad8d9ff6a407ebf09eac90d8327ce
This commit is contained in:
Sean Dague 2014-01-29 08:09:06 -05:00
parent 972ddf286d
commit 838c3a9040
1 changed files with 1 additions and 1 deletions

View File

@ -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])